You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
970 B
51 lines
970 B
2 years ago
|
import Vue from 'vue'
|
||
|
import VueRouter from 'vue-router'
|
||
|
import box from '../components/box'
|
||
|
// import Home from '../views/Home.vue'
|
||
|
|
||
|
Vue.use(VueRouter)
|
||
|
|
||
|
const routes = [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'box',
|
||
|
component: box,
|
||
|
redirect: '/login',
|
||
|
children: [
|
||
|
{
|
||
|
path: 'home',
|
||
|
name: 'home',
|
||
|
component: () => import('@/views/head'),
|
||
|
children: [
|
||
|
{
|
||
|
path: 'enterpriseArchives',
|
||
|
name: 'enterpriseArchives',
|
||
|
component: () => import('@/views/enterpriseArchives'),
|
||
|
|
||
|
},
|
||
|
{
|
||
|
path: 'archives',
|
||
|
name: 'archives',
|
||
|
component: () => import('@/views/archives'),
|
||
|
},
|
||
|
|
||
|
]
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path: 'login',
|
||
|
name: 'login',
|
||
|
component: () => import('@/components/login'),
|
||
|
|
||
|
},
|
||
|
]
|
||
|
}]
|
||
|
|
||
|
const router = new VueRouter({
|
||
|
mode: 'history',
|
||
|
base: process.env.BASE_URL,
|
||
|
routes
|
||
|
})
|
||
|
|
||
|
export default router
|