333
This commit is contained in:
@@ -17,7 +17,13 @@ export const useGenerateStore = defineStore({
|
||||
id: -1,
|
||||
}
|
||||
},
|
||||
queryList: []
|
||||
queryList: [],
|
||||
|
||||
/** 顾客照片信息 */
|
||||
photoInfo: {
|
||||
id: "",
|
||||
url: "",
|
||||
}
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
@@ -32,7 +38,7 @@ export const useGenerateStore = defineStore({
|
||||
/** 原始试穿id */
|
||||
originalTryOnId: (state) => state.userData.style.id,
|
||||
/** 顾客照片id */
|
||||
customerPhotoId: (state) => state.userData.id,
|
||||
customerPhotoId: (state) => state.photoInfo.id,
|
||||
},
|
||||
actions: {
|
||||
selectStyle(data: any) {
|
||||
@@ -54,6 +60,11 @@ export const useGenerateStore = defineStore({
|
||||
selectModel(data: any) {
|
||||
this.userData.model.id = data.id
|
||||
console.log(this.userData)
|
||||
}
|
||||
},
|
||||
/** 更新顾客照片信息 */
|
||||
updatePhotoInfo(data: any) {
|
||||
this.photoInfo.id = data.visitRecordId || ""
|
||||
this.photoInfo.url = data.defaultImageUrl || ""
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user