|
@ -245,6 +245,9 @@ import { getSwitchByCode } from '@/api/wms/switch' |
|
|
loginLoading.value = true |
|
|
loginLoading.value = true |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
|
|
|
const { wsCache } = useCache() |
|
|
|
|
|
// 登陆成功先清空遗留的缓存 |
|
|
|
|
|
wsCache.clear() |
|
|
await getTenantId() |
|
|
await getTenantId() |
|
|
|
|
|
|
|
|
const data = await validForm() |
|
|
const data = await validForm() |
|
@ -298,9 +301,6 @@ import { getSwitchByCode } from '@/api/wms/switch' |
|
|
getCode() |
|
|
getCode() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
const { wsCache } = useCache() |
|
|
|
|
|
// 登陆成功先清空遗留的缓存 |
|
|
|
|
|
wsCache.clear() |
|
|
|
|
|
loading.value = ElLoading.service({ |
|
|
loading.value = ElLoading.service({ |
|
|
lock: true, |
|
|
lock: true, |
|
|
text: '正在加载系统中...', |
|
|
text: '正在加载系统中...', |
|
|