/** * 布局处理服务 */ export class layoutService { private data = { title: "", hasHeader: false, hasFooter: false, background: "", }; constructor() {} init() {} setMetaData(inputData: { title: string; hasHeader: boolean; hasFooter: boolean; background: string; }) { this.data = { ...this.data, ...inputData }; } getMetaData() { return JSON.parse(JSON.stringify(this.data)); } }