From e58e8540c9dc90ab467e6e3ecceaa0c8baad39cb Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Mon, 23 Mar 2026 10:41:16 +0800 Subject: [PATCH 1/2] fix --- src/store/workspace/workspace.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/workspace/workspace.ts b/src/store/workspace/workspace.ts index 08e975d2..628a4d67 100644 --- a/src/store/workspace/workspace.ts +++ b/src/store/workspace/workspace.ts @@ -74,7 +74,8 @@ const Workspace: Module = { }, setProbject(state, data) { for (const key in data) { - if (data[key] == undefined) continue + let list = ['styleName','styleId','style'] + if (data[key] == undefined && !list.includes(key)) continue state.probjects[key] = data[key] } }, From f5a74991c9bd68062fe5dc687a8bc6ab9a2531b3 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Mon, 23 Mar 2026 11:57:10 +0800 Subject: [PATCH 2/2] fix --- src/component/HomePage/Generate.vue | 4 +--- src/views/HomeView/library.vue | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/component/HomePage/Generate.vue b/src/component/HomePage/Generate.vue index 245cb13b..cbbe631a 100644 --- a/src/component/HomePage/Generate.vue +++ b/src/component/HomePage/Generate.vue @@ -853,9 +853,7 @@ export default defineComponent({ level2Type = this.sketchboardList?.[0]?.categoryValue ? this.sketchboardList[0].categoryValue : '' - if (this.workspace.styleName) { - sloganText = `${this.workspace.styleName},${sloganText}` - } + sloganText = `${this.workspace.styleName || 'all'},${sloganText}` } else if (this.upload.level1Type == 'Printboard') { level2Type = this.scene?.value if (level2Type == 'Slogan' && this.searchPictureName == '') { diff --git a/src/views/HomeView/library.vue b/src/views/HomeView/library.vue index 79c3191f..6cd1b19f 100644 --- a/src/views/HomeView/library.vue +++ b/src/views/HomeView/library.vue @@ -1721,9 +1721,8 @@ export default defineComponent({ sloganText = this.captionGeneration if(this.selectCode == "Sketchboard"){ level2Type = this.selectGenerateList?.[0]?.categoryValue?this.selectGenerateList[0].categoryValue:'' - if(this.workspace.styleName){ - sloganText = `${this.workspace.styleName},${sloganText}` - } + // sloganText = `${this.workspace.styleName || 'all'},${sloganText}` + sloganText = `'all',${sloganText}` }else if(this.selectCode == "Printboard"){ level2Type = this.scene?.value if(level2Type == 'Slogan' && this.captionGeneration == ''){