diff --git a/src/stores/modules/generate.ts b/src/stores/modules/generate.ts index 8a19620..4b89824 100644 --- a/src/stores/modules/generate.ts +++ b/src/stores/modules/generate.ts @@ -46,7 +46,7 @@ export const useGenerateStore = defineStore({ customerId: '', visitRecordId: '' }, - sessionId: '' //会话id 秒级时间戳 + chatSessionId: '' //会话id 秒级时间戳 } }, getters: { @@ -63,7 +63,7 @@ export const useGenerateStore = defineStore({ /** 顾客照片id */ customerPhotoId: (state) => state.photoInfo.id, /** 会话id */ - sessionId: (state) => state.sessionId + sessionId: (state) => state.chatSessionId }, actions: { selectStyle(data: any) { @@ -146,7 +146,7 @@ export const useGenerateStore = defineStore({ this.customerInfo = data }, setSessionId(data: string) { - this.sessionId = data + this.chatSessionId = data }, } })