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] 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 == ''){