增加首页路由
This commit is contained in:
@@ -82,23 +82,17 @@ export function formatDate(value, fmt) {
|
|||||||
// 生成首页路由
|
// 生成首页路由
|
||||||
export function generateIndexRouter(data) {
|
export function generateIndexRouter(data) {
|
||||||
let indexRouter = generateChildRouters(data)
|
let indexRouter = generateChildRouters(data)
|
||||||
// let indexRouter = [{
|
indexRouter.splice(0,0, {
|
||||||
// path: '/',
|
path: '/',
|
||||||
// name: 'dashboard',
|
name: '首页',
|
||||||
// //component: () => import('@/components/layouts/BasicLayout'),
|
component: () => import('@/components/layouts/TabLayout'),
|
||||||
// component: resolve => require(['@/components/layouts/TabLayout'], resolve),
|
meta: {
|
||||||
// meta: {
|
title: '首页',
|
||||||
// title: '首页',
|
icon: 'icon-present',
|
||||||
// icon: 'icon-present'
|
url: '/dashboard/analysis'
|
||||||
// },
|
},
|
||||||
// redirect: '/dashboard/analysis',
|
redirect: '/dashboard/analysis'
|
||||||
// children: [
|
})
|
||||||
// ...generateChildRouters(data)
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// "path": "*", "redirect": "/404", "hidden": true
|
|
||||||
// }]
|
|
||||||
return indexRouter;
|
return indexRouter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user