前端最新版本同步
This commit is contained in:
@@ -16,7 +16,8 @@ const useUserStore = defineStore(
|
||||
nickName: '',
|
||||
fixmedinsCode: '', // 医疗机构编码
|
||||
roles: [],
|
||||
permissions: []
|
||||
permissions: [],
|
||||
tenantId: ''
|
||||
}),
|
||||
actions: {
|
||||
// 登录
|
||||
@@ -30,6 +31,7 @@ const useUserStore = defineStore(
|
||||
login(username, password, code, uuid ,tenantId).then(res => {
|
||||
setToken(res.token)
|
||||
this.token = res.token
|
||||
this.tenantId = tenantId
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
@@ -70,6 +72,7 @@ const useUserStore = defineStore(
|
||||
this.token = ''
|
||||
this.roles = []
|
||||
this.permissions = []
|
||||
this.tenantId = ''
|
||||
removeToken()
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user