update 1399-12-01
This commit is contained in:
+3
-2
@@ -103,11 +103,12 @@ router.afterEach(() => {
|
||||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
return next();
|
||||
let isLogin = localStorage.getItem('accessToken');
|
||||
// return next();
|
||||
let isLogin = sessionStorage.getItem('accessToken');
|
||||
console.log("to.path ==> ", to.path);
|
||||
if (
|
||||
(
|
||||
to.path === "/register/form" ||
|
||||
to.path === "/auth/login" ||
|
||||
to.path === "/auth/register" ||
|
||||
to.path === "/pages/error-404" ||
|
||||
|
||||
Reference in New Issue
Block a user