This commit is contained in:
X1627315083
2025-10-24 15:18:23 +08:00
parent 6ff592208e
commit d5e8d00234
4 changed files with 40 additions and 37 deletions

View File

@@ -5,14 +5,14 @@ export const useGenerateStore = defineStore({
state: () => {
return {
style: {
id: -1,
oldId: -1,//表示从生成页面返回回来需要调整的样式id
id: '',
oldId: '',//表示从生成页面返回回来需要调整的样式id
},
model: {
id: -1,
id: '',
},
originalTryOn:{//生成穿好衣服的回参
id: -1,
id: '',
isLike: false,//是否喜欢
tryOnUrl:'',
},
@@ -56,19 +56,19 @@ export const useGenerateStore = defineStore({
},
//生成后去掉id 设置oldId来修改样式
useStyleGenerate() {
if(!this.style.id)return
this.style.oldId = this.style.id
this.style.id = -1
this.style.id = ''
},
updateStyle(data) {
console.log(data)
if (data.id == this.style.oldId) {
this.style.oldId = -1
this.style.oldId = ''
}
},
//模特相关
selectModel(data: any) {
this.model.id = data.id
console.log(this)
},
setIsGenerate(isGenerate: boolean) {
this.isGenerate = isGenerate