change
This commit is contained in:
parent
ed10c2b118
commit
f7a99e7a65
|
@ -30,7 +30,6 @@ export default defineStore('user', () => {
|
|||
if (!val) return
|
||||
request<UserInfo>('GET', '/api/profile').then((res) => {
|
||||
Object.assign(profile, res)
|
||||
|
||||
})
|
||||
},
|
||||
{ immediate: true }
|
||||
|
@ -41,6 +40,7 @@ export default defineStore('user', () => {
|
|||
Object.assign(profile, { ...defaultUserInfo })
|
||||
// profile.avatar = ''
|
||||
}
|
||||
// 自动备份
|
||||
return {
|
||||
token,
|
||||
profile,
|
||||
|
|
Loading…
Reference in New Issue