更改获取顾客ID

删除.env.test
This commit is contained in:
李志鹏
2025-10-27 11:29:57 +08:00
parent a31e529ea9
commit 9ac23fa6ff
3 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
// 每一个存储的模块命名规则use开头store结尾
import { defineStore } from 'pinia'
import { useUserInfoStore } from './userInfo'
export const useGenerateStore = defineStore({
id: 'generate', // 必须指明唯一的pinia仓库的id
state: () => {
@@ -38,9 +39,9 @@ export const useGenerateStore = defineStore({
},
getters: {
/** 顾客id */
customerId: (state) => 1,
customerId: (state) => useUserInfoStore().state.customerId,
/** 进店记录id */
visitRecordId: (state) => 1,
visitRecordId: (state) => useUserInfoStore().state.visitRecordId,
/** 服装id */
styleId: (state) => state.style.id || state.style.oldId,
/** 模特照片id */