src/stores/modules/userInfo.ts
@@ -14,6 +14,7 @@ empCode:'', userId:'', unitId:'',//租户ID departmentId: '', roleCodes:[], userInfo:{ adminToken: '', // 管理后台的token @@ -66,6 +67,7 @@ this.fullUnitName = user.fullUnitName this.userId = user.id this.unitId = user.unitId this.departmentId = user.departmentId this.roleCodes = user.roleCodes this.userInfo=user }, @@ -113,6 +115,9 @@ getUnitId: (state) => { return state.unitId }, getDepartmentId: (state) => { return state.departmentId }, getRoleCodes: (state) => { return state.roleCodes },