修复选择衣服后刷新进入tryOn的衣服和生成的不一致
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user