|
@@ -11,7 +11,7 @@ import { getRedirectUrl } from '@/utils/getRedirectUrl';
|
|
|
|
|
|
|
|
const LOGIN_PATH = PageEnum.BASE_LOGIN;
|
|
const LOGIN_PATH = PageEnum.BASE_LOGIN;
|
|
|
|
|
|
|
|
-const whitePathList = [LOGIN_PATH, PageEnum.HOME_PAGE]; // no redirect whitelist
|
|
|
|
|
|
|
+const whitePathList = [LOGIN_PATH, PageEnum.BASE_HOME]; // no redirect whitelist
|
|
|
|
|
|
|
|
export function createRouterGuards(router: Router) {
|
|
export function createRouterGuards(router: Router) {
|
|
|
const userStore = useUserStoreWidthOut();
|
|
const userStore = useUserStoreWidthOut();
|
|
@@ -69,7 +69,7 @@ export function createRouterGuards(router: Router) {
|
|
|
});
|
|
});
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
|
console.log('login error', err);
|
|
console.log('login error', err);
|
|
|
- window.location.href = getRedirectUrl();
|
|
|
|
|
|
|
+ // window.location.href = getRedirectUrl();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//添加404
|
|
//添加404
|