refactor: change container component names
This commit is contained in:
+9
-4
@@ -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({
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user