|
@@ -67,7 +67,7 @@ export const useUserStore = defineStore('user',
|
|
|
async getUserBaseInfos (userId = null) {
|
|
|
try {
|
|
|
const api = this.loginType ? null : getBaseInfo
|
|
|
- if (!api) return localStorage.setItem('baseInfo', JSON.stringify({}))
|
|
|
+ if (!api) return localStorage.setItem('baseInfo', JSON.stringify(null))
|
|
|
const data = await api({ userId: userId || this.accountInfo.userId })
|
|
|
this.baseInfo = await this.getFieldText(data)
|
|
|
localStorage.setItem('baseInfo', JSON.stringify(this.baseInfo))
|