修复选择衣服后刷新进入tryOn的衣服和生成的不一致

This commit is contained in:
X1627315083
2025-11-18 11:34:48 +08:00
parent bb6378e409
commit f5496603b6
4 changed files with 20 additions and 8 deletions

View File

@@ -70,19 +70,21 @@ export const useGenerateStore = defineStore({
actions: {
selectStyle(data: any) {
this.style.id = data.id
console.log(this)
},
//生成后去掉id 设置oldId来修改样式
useStyleGenerate() {
if (!this.style.id) return
this.style.oldId = this.style.id
this.style.id = ''
// this.style.id = ''
},
updateStyle(data) {
console.log(data)
if (data.id == this.style.oldId) {
this.style.oldId = ''
}
if(data.id == this.style.id) {
this.style.id = ''
}
console.log(this.style)
},
//模特相关
selectModel(data: any) {