mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-09-28 15:22:42 +00:00
优化导航栏显示昵称&设置
This commit is contained in:
@@ -10,6 +10,7 @@ const useUserStore = defineStore(
|
||||
token: getToken(),
|
||||
id: '',
|
||||
name: '',
|
||||
nickName: '',
|
||||
avatar: '',
|
||||
roles: [],
|
||||
permissions: []
|
||||
@@ -48,6 +49,7 @@ const useUserStore = defineStore(
|
||||
}
|
||||
this.id = user.userId
|
||||
this.name = user.userName
|
||||
this.nickName = user.nickName
|
||||
this.avatar = avatar
|
||||
resolve(res)
|
||||
}).catch(error => {
|
||||
|
Reference in New Issue
Block a user