update 1399-12-24

This commit is contained in:
AliGhasami
2021-03-14 09:40:47 +03:30
parent eea2705893
commit 1692a9973e
27 changed files with 2283 additions and 1124 deletions
+4 -4
View File
@@ -54,7 +54,7 @@ const router = new Router({
{
path: '/dashboard',
name: 'dashborrdPage',
component: () => import('./views/DashboardAnalytics.vue'),
component: () => import('./views/dashboard/DashboardAnalytics.vue'),
meta: {
rule: 'editor'
}
@@ -105,7 +105,7 @@ router.afterEach(() => {
router.beforeEach((to, from, next) => {
// return next();
let isLogin = sessionStorage.getItem('accessToken');
console.log("to.path ==> ", to.path);
//console.log("to.path ==> ", to.path);
if (
(
to.path === "/register/form" ||
@@ -115,9 +115,9 @@ router.beforeEach((to, from, next) => {
to.path === "/auth/forgot-password"
)
) {
if (isLogin) {
/* if (isLogin) {
router.push({path: '/'});
}
}*/
return next();
}