|
|
@@ -42,7 +42,6 @@ import FreePayment from '~/account/payment/FreePayment'; |
|
|
|
import UnknownPayment from '~/account/payment/UnknownPayment'; |
|
|
|
import { util } from '~/_helpers'; |
|
|
|
|
|
|
|
|
|
|
|
Vue.use(Router); |
|
|
|
|
|
|
|
const paymentMethods = { |
|
|
@@ -69,22 +68,28 @@ export const router = new Router({ |
|
|
|
routes: [ |
|
|
|
// new Pages & lazy loading |
|
|
|
{ |
|
|
|
path: '/', |
|
|
|
component: () => import('~/_pages/auth/Layout'), |
|
|
|
path: '/new_pages', |
|
|
|
component: () => import('~/_pages/Layout'), |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/newLogin', |
|
|
|
component: () => import('~/_pages/auth/NewLogin'), |
|
|
|
path: '', |
|
|
|
component: () => import('~/_pages/auth/Layout'), |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'login', |
|
|
|
component: () => import('~/_pages/auth/Login'), |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/', |
|
|
|
component: () => import('~/_pages/main/Layout'), |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/test', |
|
|
|
component: () => import('~/_pages/main/Test'), |
|
|
|
path: '', |
|
|
|
component: () => import('~/_pages/main/Layout'), |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'test', |
|
|
|
component: () => import('~/_pages/main/Test'), |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
@@ -192,8 +197,7 @@ const publicPages = [ |
|
|
|
'/legal', |
|
|
|
|
|
|
|
// new Pages |
|
|
|
'/newLogin', |
|
|
|
'/test', |
|
|
|
'/new_pages', |
|
|
|
]; |
|
|
|
|
|
|
|
router.beforeEach((to, from, next) => { |
|
|
|