{{ option.label }}
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index ab16fb7..1c0613d 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -15,7 +15,7 @@ const TOKEN_REFRESH_SECONDS = 20 * 60
export interface UserInfoType {
token: string
- tenantList: any[]
+ deptlist: any[]
userInfo: any
}
@@ -122,8 +122,8 @@ export const useUserStore = defineStore({
if (code === ResultEnum.SUCCESS) {
const ex = 7 * 24 * 60 * 60
// 默认设置为第一个租户
- const firstTenant = data.tenantList.length > 0 ? data.tenantList[0] : null
- const tenantId = firstTenant ? firstTenant.id : ''
+ const firstTenant = data.deptlist.length > 0 ? data.deptlist[0] : null
+ const tenantId = firstTenant ? firstTenant.deptno : ''
data.frontmenuTList.forEach((ele) => {
if (ele.description === 'AI工单')
ele.description = '图审审批'
@@ -175,7 +175,7 @@ export const useUserStore = defineStore({
// 登出
async logout() {
this.setPermissions([])
- this.setUserInfo({ tenantList: [], userInfo: {}, token: '' })
+ this.setUserInfo({ deptlist: [], userInfo: {}, token: '' })
this.setTenantId('')
storage.remove(USER_ACCESS_TOKEN)
storage.remove(CURRENT_USER)