library懒加载

This commit is contained in:
李志鹏
2025-10-24 16:21:04 +08:00
parent 093508ed5a
commit 47d0b1fcc9
6 changed files with 11 additions and 9 deletions

View File

@@ -42,11 +42,11 @@ export const useGenerateStore = defineStore({
/** 进店记录id */
visitRecordId: (state) => 1,
/** 服装id */
styleId: (state) => state.style.id,
styleId: (state) => state.style.id || state.style.oldId,
/** 模特照片id */
modelPhotoId: (state) => state.model.id,
/** 原始试穿id-优先AI魔改 */
originalTryOnId: (state) => state.customizeInfo.tryOnId || state.tryOnId.id,
originalTryOnId: (state) => state.customizeInfo.tryOnId || state.originalTryOn.id,
/** 顾客照片id */
customerPhotoId: (state) => state.photoInfo.id,
},