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