fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user