feat: 升级增加全局 loading

This commit is contained in:
ssongliu
2023-01-31 15:22:05 +08:00
parent 5100865f7e
commit e83bc0b675
21 changed files with 237 additions and 115 deletions

View File

@@ -58,6 +58,15 @@ class RequestHttp {
router.push({ name: 'Expired' });
return data;
}
if (data.code == ResultEnum.ERRGLOBALLOADDING) {
globalStore.setGlobalLoading(true);
globalStore.setLoadingText(data.message);
return;
} else {
if (globalStore.isLoading) {
globalStore.setGlobalLoading(false);
}
}
if (data.code == ResultEnum.ERRAUTH) {
return data;
}