|
|
@ -244,6 +244,9 @@ |
|
|
|
loginLoading.value = true |
|
|
|
|
|
|
|
try { |
|
|
|
const { wsCache } = useCache() |
|
|
|
// 登陆成功先清空遗留的缓存 |
|
|
|
wsCache.clear() |
|
|
|
await getTenantId() |
|
|
|
|
|
|
|
const data = await validForm() |
|
|
@ -329,7 +332,6 @@ |
|
|
|
replace({ path: redirect.value || permissionStore.addRouters[0].path }) |
|
|
|
} |
|
|
|
// 存储 部门信息 |
|
|
|
const { wsCache } = useCache() |
|
|
|
wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList()) |
|
|
|
}catch (e){ |
|
|
|
if(e.code === 1002000016){ |
|
|
|