You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
830 B
JavaScript
38 lines
830 B
JavaScript
7 months ago
|
import Vue from 'vue'
|
||
|
import Router from 'vue-router'
|
||
|
import Layout from '@/layout/index.vue'
|
||
|
|
||
|
Vue.use(Router)
|
||
|
|
||
|
export default new Router({
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
component: Layout,
|
||
|
redirect: '/index',
|
||
|
children: [
|
||
|
{
|
||
|
path: '/index',
|
||
|
component: () => import('@/views/index/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/productCenter',
|
||
|
component: () => import('@/views/productCenter/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/index2',
|
||
|
component: () => import('@/views/index/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/index3',
|
||
|
component: () => import('@/views/index/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/index4',
|
||
|
component: () => import('@/views/index/index.vue'),
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
]
|
||
|
})
|