refactor: change container component names

This commit is contained in:
woothu
2019-09-23 13:16:03 +02:00
parent 86dd5ebf51
commit 6a61d68c9f
7 changed files with 42 additions and 37 deletions
+9 -4
View File
@@ -2,7 +2,7 @@ import Vue from 'vue'
import Router from 'vue-router'
// Containers
const DefaultContainer = () => import('@/containers/DefaultContainer')
const TheContainer = () => import('@/containers/TheContainer')
// Views
const Dashboard = () => import('@/views/Dashboard')
@@ -63,12 +63,16 @@ export default new Router({
mode: 'hash', // https://router.vuejs.org/api/#mode
linkActiveClass: 'active',
scrollBehavior: () => ({ y: 0 }),
routes: [
routes: configRoutes()
})
function configRoutes () {
return [
{
path: '/',
redirect: '/dashboard',
name: 'Home',
component: DefaultContainer,
component: TheContainer,
children: [
{
path: 'dashboard',
@@ -327,4 +331,5 @@ export default new Router({
]
}
]
})
}