feat:增加切换角色支持

This commit is contained in:
zhangchuanlong
2022-02-17 19:02:05 +08:00
parent 5eb6874754
commit 59cf11be7a
4 changed files with 57 additions and 9 deletions

View File

@@ -42,5 +42,8 @@ export const useUserStore = defineStore('user', {
removeToken()
this.userInfo = {}
},
setUserInfo(userInfo = {}) {
this.userInfo = { ...this.userInfo, ...userInfo }
},
},
})