change base url and translate login page and add field

This commit is contained in:
AliGhasami
2021-01-31 01:48:21 +03:30
parent b05899d062
commit 2f77bf9cf6
6 changed files with 681 additions and 23 deletions
+2 -1
View File
@@ -25,7 +25,7 @@ const router = new Router({
}
},
{
path: '/auth/register',
path: '/register/form',
name: 'auth-register',
component: () => import('./views/register/Register.vue'),
meta: {
@@ -103,6 +103,7 @@ router.afterEach(() => {
})
router.beforeEach((to, from, next) => {
return next();
let isLogin = localStorage.getItem('accessToken');
console.log("to.path ==> ", to.path);
if (