ZW_MultiSelect/wms-vue/src/router/router.js

53 lines
1.3 KiB
JavaScript

import VueRouter from "vue-router";
const routes=[
{
path:'/login',
name:'login',
component: () => import('../components/Login')
},
{
path:'/index',
name:'index',
component: () => import('../components/Index'),
children:[
{
path:'/home',
name:'home',
meta:{
title:'首页'
},
component: () => import('../components/duochaxun/Zhengliqingdan.vue')
},
{
path:'/Zhengliqingdan',
name:'Zhengliqingdan',
meta:{
title:'整理完成未上架清单'
},
component: () => import('@/components/duochaxun/Zhengliqingdan.vue')
},
{
path:'/Rukuzhengli',
name:'Rukuzhengli',
meta:{
title:'整理完成未上架清单'
},
component: () => import('@/components/duochaxun/Rukuzhengli.vue')
}
]
}
]
const route=new VueRouter({
mode:'history',
routes
})
const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (to) {
return VueRouterPush.call(this, to).catch(err => err)
}
export default route;