开启头部导航后,首页仪表盘位置调整

This commit is contained in:
wenchaogong 2021-08-16 00:03:53 +08:00
parent 04a1571dc8
commit eb7253fc61

View File

@ -21,12 +21,12 @@ const permission = {
state.defaultRoutes = constantRoutes.concat(routes) state.defaultRoutes = constantRoutes.concat(routes)
}, },
SET_TOPBAR_ROUTES: (state, routes) => { SET_TOPBAR_ROUTES: (state, routes) => {
// 顶部导航菜单默认添加统计报表栏指向首页 // 顶部导航菜单默认添加仪表盘栏指向首页
const index = [{ const index = [{
path: 'index', path: 'index',
meta: { title: '统计报表', icon: 'dashboard'} meta: { title: '仪表盘', icon: 'dashboard'}
}] }]
state.topbarRouters = routes.concat(index); state.topbarRouters = index.concat(routes);
}, },
SET_SIDEBAR_ROUTERS: (state, routes) => { SET_SIDEBAR_ROUTERS: (state, routes) => {
state.sidebarRouters = routes state.sidebarRouters = routes