update 1399-12-24
This commit is contained in:
+4
-4
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user