更新
This commit is contained in:
@@ -15,7 +15,7 @@ const whiteList = ["/login"]; // no redirect whitelist
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
NProgress.start();
|
||||
document.title = getPageTitle(to.meta.title);
|
||||
const hasToken = localStorage.getItem("token");
|
||||
const hasToken = localStorage.getItem("businessToken");
|
||||
if (hasToken) {
|
||||
if (to.path === "/login") {
|
||||
next({ path: "/" });
|
||||
|
||||
Reference in New Issue
Block a user