PC 端 router 配置

  作者:chrispy

export default new Router({routes: [{path: '/',name: 'login',component (resolve) {require(['@/views/login'], resolve)}},{path: '*',redirect: '/404'},{path: '/404',name: 'NotPage',compo

export default new Router({

routes: [

{

path: '/',

name: 'login',

component (resolve) {

require(['@/views/login'], resolve)

}

},

{

path: '*',

redirect: '/404'

},

{

path: '/404',

name: 'NotPage',

component (resolve) {

require(['@/views/404'], resolve)

},

meta: {

pageTitle: '404'

}

},

{

path: '/500',

name: 'Error',

component (resolve) {

require(['@/views/500'], resolve)

},

meta: {

pageTitle: '500'

}

},

{

path: '/index',

name: 'index',

component (resolve) {

require(['@/views/index'], resolve)

},

meta: {

pageTitle: 'index'

},

children: [

{

path: '/TaskManagement',

name: 'TaskManagement',

component (resolve) {

require(['@/views/TaskManagement'], resolve)

},

meta: {

projectName: '拓客管理',

pageTitle: '任务管理',

path: '/',

page: ''

}

},

{

path: '/CustomerAccount',

name: 'CustomerAccount',

component (resolve) {

require(['@/views/CustomerAccount'], resolve)

},

meta: {

projectName: '拓客管理',

pageTitle: '客户台账',

path: '/CustomerAccount',

page: ''

}

}

]

}

]

})


有用  |  无用

猜你喜欢