Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
86405ba0
Commit
86405ba0
authored
Apr 12, 2021
by
季圣华
Browse files
增加首页路由
parent
33edd279
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/utils/util.js
View file @
86405ba0
...
...
@@ -82,23 +82,17 @@ export function formatDate(value, fmt) {
// 生成首页路由
export
function
generateIndexRouter
(
data
)
{
let
indexRouter
=
generateChildRouters
(
data
)
// let indexRouter = [{
// path: '/',
// name: 'dashboard',
// //component: () => import('@/components/layouts/BasicLayout'),
// component: resolve => require(['@/components/layouts/TabLayout'], resolve),
// meta: {
// title: '首页',
// icon: 'icon-present'
// },
// redirect: '/dashboard/analysis',
// children: [
// ...generateChildRouters(data)
// ]
// },
// {
// "path": "*", "redirect": "/404", "hidden": true
// }]
indexRouter
.
splice
(
0
,
0
,
{
path
:
'
/
'
,
name
:
'
首页
'
,
component
:
()
=>
import
(
'
@/components/layouts/TabLayout
'
),
meta
:
{
title
:
'
首页
'
,
icon
:
'
icon-present
'
,
url
:
'
/dashboard/analysis
'
},
redirect
:
'
/dashboard/analysis
'
})
return
indexRouter
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment