29 lines
791 B
JavaScript
29 lines
791 B
JavaScript
|
|
import VueI18n from 'vue-i18n';
|
|
import Vue from 'vue'
|
|
Vue.use(VueI18n);
|
|
|
|
function load (component) {
|
|
return () => import(`components/${component}.vue`)
|
|
}
|
|
|
|
|
|
const routes = [
|
|
{ path: '/', component: () => import('pages/Index.vue') },
|
|
{ path: '/prec', component: load('views/dashboard/one/dashboard'), meta: { name: 'Dashboard One' } },
|
|
{ path: '/signup', component: load('views/login/signup'), meta: { name: 'Registration' } },
|
|
{ path: '/signin', component: load('views/login/signin'), meta: { name: 'Login' } },
|
|
{ path: '/login', component: load('views/login/login'), meta: { name: 'Login' } },
|
|
|
|
];
|
|
|
|
// Always leave this as last one
|
|
if (process.env.MODE !== 'ssr') {
|
|
routes.push({
|
|
path: '*',
|
|
component: () => import('pages/Error404.vue')
|
|
})
|
|
}
|
|
|
|
export default routes
|