|
|
@@ -28,7 +28,6 @@ export const useUserStore = defineStore('user-store', {
|
|
|
const companyStore = useCompanyStore()
|
|
|
if (companyStore.company.id !== 0) {
|
|
|
useAuthStore().changeToken(`SECRET_TOKEN${companyStore.company.id}`)
|
|
|
- useChatStore().changeChatLocal(`chatStorage${companyStore.company.id}`)
|
|
|
}
|
|
|
const data = await fetchMy<UserInfo>()
|
|
|
this.setUserInfo(data)
|
|
|
@@ -36,6 +35,13 @@ export const useUserStore = defineStore('user-store', {
|
|
|
companyStore.getCompanyInfo(companyStore.company.id)
|
|
|
}
|
|
|
|
|
|
+ if (companyStore.company.id !== 0) {
|
|
|
+ useChatStore().changeChatLocal(`chatStorage${companyStore.company.id}_${data.id}`)
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ useChatStore().changeChatLocal(`chatStorage_${data.id}`)
|
|
|
+ }
|
|
|
+
|
|
|
await useUserMemberStore().fetchMember()
|
|
|
},
|
|
|
|