glweb change
This commit is contained in:
parent
90d5b498a6
commit
6e5d37ec91
|
|
@ -50,12 +50,12 @@ router.beforeEach((to, from, next) => {
|
||||||
// 在免登录白名单,直接进入
|
// 在免登录白名单,直接进入
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
next(`/glweb/login?redirect=${encodeURIComponent(to.fullPath)}`); // 否则全部重定向到登录页
|
next(`/login?redirect=${encodeURIComponent(to.fullPath)}`); // 否则全部重定向到登录页
|
||||||
NProgress.done();
|
NProgress.done(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
NProgress.done();
|
NProgress.done(true);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -185,5 +185,5 @@ export default new Router({
|
||||||
mode: "history", // 去掉url中的#
|
mode: "history", // 去掉url中的#
|
||||||
scrollBehavior: () => ({ y: 0 }),
|
scrollBehavior: () => ({ y: 0 }),
|
||||||
routes: constantRoutes,
|
routes: constantRoutes,
|
||||||
base: "/glweb",
|
/* base: "/glweb", */
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue