选择风格变为生成四个,调整渐变按钮样式

This commit is contained in:
X1627315083
2025-12-29 14:42:50 +08:00
parent 1a52eaa3c3
commit 15a4220fbc
10 changed files with 247 additions and 89 deletions

View File

@@ -15,7 +15,12 @@ export const useGenerateStore = defineStore({
isLike: false, //是否喜欢
status: ''
},
styleList: [{}, {}, {}, {}],
styleList: [
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
],
model: {
id: ''
},
@@ -98,6 +103,12 @@ export const useGenerateStore = defineStore({
taskId:'',
status: ''
}
this.styleList = [
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
]
},
//模特相关
selectModel(data: any) {
@@ -107,7 +118,12 @@ export const useGenerateStore = defineStore({
this.isGenerate = isGenerate
},
clearProductData() {
this.styleList = [{}, {}, {}, {}]
this.styleList = [
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
{id:'',taskId:'',status:'',path:''},
]
this.style = {
id: '',
path: '',