123
This commit is contained in:
@@ -27,8 +27,8 @@ export const useGenerateStore = defineStore({
|
||||
},
|
||||
/** AI魔改信息 */
|
||||
customizeInfo: {
|
||||
inputText:"",
|
||||
|
||||
inputText: "",
|
||||
|
||||
tryOnId: "",
|
||||
tryOnUrl: "",
|
||||
styleUrl: "",
|
||||
@@ -39,15 +39,15 @@ export const useGenerateStore = defineStore({
|
||||
},
|
||||
getters: {
|
||||
/** 顾客id */
|
||||
customerId: (state) => state.userData.style.id,
|
||||
customerId: (state) => 1,
|
||||
/** 进店记录id */
|
||||
visitRecordId: (state) => state.userData.style.id,
|
||||
visitRecordId: (state) => 1,
|
||||
/** 服装id */
|
||||
styleId: (state) => state.userData.style.id,
|
||||
styleId: (state) => 1,
|
||||
/** 模特照片id */
|
||||
modelPhotoId: (state) => state.userData.model.id,
|
||||
modelPhotoId: (state) => 1,
|
||||
/** 原始试穿id */
|
||||
originalTryOnId: (state) => state.userData.style.id,
|
||||
originalTryOnId: (state) => 1,
|
||||
/** 顾客照片id */
|
||||
customerPhotoId: (state) => state.photoInfo.id,
|
||||
},
|
||||
@@ -78,14 +78,14 @@ export const useGenerateStore = defineStore({
|
||||
this.photoInfo.url = data.defaultImageUrl || ""
|
||||
this.photoInfo.file = null
|
||||
},
|
||||
/** 更新AI魔改信息 */
|
||||
clearCustomizeInfo(data: any) {
|
||||
this.customizeInfo.inputText = data.inputText || ""
|
||||
this.customizeInfo.tryOnId = data.tryOnId || ""
|
||||
this.customizeInfo.tryOnUrl = data.tryOnUrl || ""
|
||||
this.customizeInfo.styleUrl = data.styleUrl || ""
|
||||
this.customizeInfo.isRegenerated = data.isRegenerated || ""
|
||||
this.customizeInfo.isFavorite = data.isFavorite || ""
|
||||
/** 清空 AI魔改信息 */
|
||||
clearCustomizeInfo() {
|
||||
this.customizeInfo.inputText = ""
|
||||
this.customizeInfo.tryOnId = ""
|
||||
this.customizeInfo.tryOnUrl = ""
|
||||
this.customizeInfo.styleUrl = ""
|
||||
this.customizeInfo.isRegenerated = ""
|
||||
this.customizeInfo.isFavorite = false
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user