Browse Source
Merge pull request #32 from WangJunZzz/develop
👕 登录提示异常信息修改
main-auditlogging
WangJunZzz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
3 deletions
-
vben271/src/store/modules/user.ts
-
vben271/src/views/sys/login/LoginForm.vue
|
|
|
@ -148,9 +148,10 @@ export const useUserStore = defineStore({ |
|
|
|
goHome && (await router.replace(PageEnum.BASE_HOME)); |
|
|
|
return null; |
|
|
|
} catch (error) { |
|
|
|
console.log(error); |
|
|
|
//console.log(error);
|
|
|
|
router.replace(PageEnum.BASE_LOGIN); |
|
|
|
return null; |
|
|
|
//return null;
|
|
|
|
throw new Error(error); |
|
|
|
} |
|
|
|
}, |
|
|
|
async getAbpApplicationConfigurationAsync() { |
|
|
|
|
|
|
|
@ -124,7 +124,7 @@ |
|
|
|
} catch (error) { |
|
|
|
createErrorModal({ |
|
|
|
title: t('sys.api.errorTip'), |
|
|
|
content: error.message || t('sys.api.networkExceptionMsg'), |
|
|
|
content: t('sys.api.networkExceptionMsg'), |
|
|
|
getContainer: () => document.body.querySelector(`.${prefixCls}`) || document.body, |
|
|
|
}); |
|
|
|
} finally { |
|
|
|
|