update 1399-12-01

This commit is contained in:
AliGhasami
2021-02-19 15:46:05 +03:30
parent cf40a1f402
commit eea2705893
10 changed files with 287 additions and 67 deletions
+3 -2
View File
@@ -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" ||