Commit b8ff0480 authored by 李苏's avatar 李苏 💬

页签bug

parent ca23671e
......@@ -757,22 +757,6 @@ export const constantRoutes = [{
component: () => import('@/views/error/401'),
hidden: true
},
// {
// path: '',
// component: Layout,
// redirect: 'index',
// hidden: true,
// children: [{
// path: 'index',
// component: () => import('@/views/index'),
// name: 'Index',
// meta: {
// title: '首页',
// icon: 'dashboard',
// affix: true
// }
// }]
// },
{
path: '/user',
component: Layout,
......
......@@ -199,6 +199,7 @@ const permission = {
}]
}
router.addRoutes([newHome])
constantRoutes.push(newHome)
}else{
let newHome= {
path: '',
......@@ -217,7 +218,14 @@ const permission = {
}]
}
router.addRoutes([newHome])
constantRoutes.push(newHome)
}
/*
*/
// res.data=[...newCommonList,...newErpList,...newPowerRoutes]
const sdata = JSON.parse(JSON.stringify(res.data))
const rdata = JSON.parse(JSON.stringify(res.data))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment