Refactor(登录):登录按钮去掉判断逻辑,一直显示
This commit is contained in:
+2
-2
@@ -924,10 +924,10 @@ export const handleLoginFailure = () => {
|
||||
|
||||
store.commit("logout");
|
||||
store.commit("updateAuthorization", false);
|
||||
let currentPageUrl = getCurrentPageUrl()
|
||||
const currentPageUrl = getCurrentPageUrl()
|
||||
// token 失效
|
||||
// 判断当前是不是已经在登录页面或者授权页,防止二次跳转
|
||||
if (store.getters.isAuthorizationPage || getCurrentPageUrl() == '/pages/user/Login/index') {
|
||||
if (store.getters.isAuthorizationPage || currentPageUrl == '/pages/user/Login/index' || currentPageUrl === '/pages/authorization/index') {
|
||||
return
|
||||
}
|
||||
store.commit("updateAuthorizationPage", true);
|
||||
|
||||
Reference in New Issue
Block a user