2024-03-15 10:59:17 +08:00
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
|
|
|
|
|
const routes=[
|
|
|
|
|
{
|
|
|
|
|
path:'/login',
|
|
|
|
|
name:'login',
|
|
|
|
|
component: () => import('../components/Login')
|
|
|
|
|
},
|
2024-04-03 14:41:00 +08:00
|
|
|
{
|
|
|
|
|
path:'/',
|
|
|
|
|
name:'login',
|
|
|
|
|
component: () => import('../components/Login')
|
|
|
|
|
},
|
2024-03-15 10:59:17 +08:00
|
|
|
{
|
|
|
|
|
path:'/index',
|
|
|
|
|
name:'index',
|
|
|
|
|
component: () => import('../components/Index'),
|
|
|
|
|
children:[
|
|
|
|
|
{
|
|
|
|
|
path:'/home',
|
|
|
|
|
name:'home',
|
|
|
|
|
meta:{
|
|
|
|
|
title:'首页'
|
|
|
|
|
},
|
2024-04-03 14:41:15 +08:00
|
|
|
component: () => import('../components/duochaxun/Rukuzhengli.vue')
|
2024-03-15 10:59:17 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-04-02 09:34:54 +08:00
|
|
|
path:'/Zhengliqingdan',
|
|
|
|
|
name:'Zhengliqingdan',
|
2024-03-15 10:59:17 +08:00
|
|
|
meta:{
|
2024-04-02 09:34:54 +08:00
|
|
|
title:'整理完成未上架清单'
|
2024-03-15 10:59:17 +08:00
|
|
|
},
|
2024-04-02 09:34:54 +08:00
|
|
|
component: () => import('@/components/duochaxun/Zhengliqingdan.vue')
|
2024-03-15 10:59:17 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-04-02 09:34:54 +08:00
|
|
|
path:'/Rukuzhengli',
|
|
|
|
|
name:'Rukuzhengli',
|
2024-03-15 10:59:17 +08:00
|
|
|
meta:{
|
2024-04-02 09:34:54 +08:00
|
|
|
title:'整理完成未上架清单'
|
2024-03-15 10:59:17 +08:00
|
|
|
},
|
2024-04-02 09:34:54 +08:00
|
|
|
component: () => import('@/components/duochaxun/Rukuzhengli.vue')
|
2024-03-15 10:59:17 +08:00
|
|
|
}
|
2024-04-02 09:34:54 +08:00
|
|
|
|
2024-03-15 10:59:17 +08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-15 15:54:57 +08:00
|
|
|
export default route;
|