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.
72 lines
2.0 KiB
JavaScript
72 lines
2.0 KiB
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import Layout from '@/layout/index.vue'
|
|
|
|
Vue.use(Router)
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{
|
|
path: '/editor', component: () => import('@/views/pageEditor/index.vue'),
|
|
},
|
|
// {
|
|
// path: '/test', component: () => import('@/views/page/index.vue'),
|
|
// },
|
|
{
|
|
path: '/',
|
|
component: Layout,
|
|
redirect: '/index',
|
|
children: [
|
|
{
|
|
path: 'test', component: () => import('@/views/page/index.vue'),
|
|
},
|
|
{
|
|
path: 'index', component: () => import('@/views/index/index.vue'),
|
|
},
|
|
]
|
|
// children: [
|
|
// {
|
|
// path: 'index',
|
|
// component: () => import('@/views/index/index.vue'),
|
|
// },
|
|
// {
|
|
// path: '/aboutHW',
|
|
// component: () => import('@/views/aboutHW.vue'),
|
|
// },
|
|
// {
|
|
// path: '/productCenter',
|
|
// component: () => import('@/views/productCenter.vue'),
|
|
// },
|
|
// {
|
|
// path: '/productCenter/detail',
|
|
// component: () => import('@/views/productInfo.vue'),
|
|
// },
|
|
// {
|
|
// path: '/industryPlan',
|
|
// component: () => import('@/views/industryPlan.vue'),
|
|
// },
|
|
// {
|
|
// path: '/industryPlan/detail',
|
|
// component: () => import('@/views/productInfo.vue'),
|
|
// },
|
|
// {
|
|
// path: '/serviceSupport',
|
|
// component: () => import('@/views/serviceSupport.vue'),
|
|
// },
|
|
// {
|
|
// path: '/newsCenter/details',
|
|
// component: () => import('@/views/newsCenter/details.vue'),
|
|
// },
|
|
// {
|
|
// path: '/contactUs',
|
|
// component: () => import('@/views/contactUs/index.vue'),
|
|
// },
|
|
// {
|
|
// path: 'casesAndClients/more',
|
|
// component: () => import('@/views/casesAndClients/IOT/more.vue'),
|
|
// },
|
|
// ]
|
|
},
|
|
]
|
|
})
|