mirror of
https://github.com/1024-lab/smart-admin.git
synced 2025-09-25 17:38:51 +00:00
v2.0代码提交
This commit is contained in:
42
smart_admin_v1/smart-admin-h5/src/router/dashboard/index.js
Normal file
42
smart_admin_v1/smart-admin-h5/src/router/dashboard/index.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import { ROUTER_PERMISSION_TYPE } from '@/router/router-const';
|
||||
|
||||
/**
|
||||
* dashboard首页
|
||||
*/
|
||||
export const dashboardRouter = [
|
||||
{
|
||||
path: '/',
|
||||
// redirect: '/dashboard/contact-company',
|
||||
redirect: '/dashboard/user',
|
||||
meta: {
|
||||
title: '首页',
|
||||
keepAlive: true,
|
||||
permissionType: ROUTER_PERMISSION_TYPE.NEED_LOGIN.value
|
||||
},
|
||||
component: () => import('@/views/dashboard/dashboard'),
|
||||
children: [
|
||||
// {
|
||||
// path: '/dashboard/contact-company',
|
||||
// name: 'ContactCompany',
|
||||
// meta: {
|
||||
// title: '往来单位',
|
||||
// keepAlive: true,
|
||||
// showTabbar: true,
|
||||
// permissionType: ROUTER_PERMISSION_TYPE.NEED_LOGIN.value
|
||||
// },
|
||||
// component: () => import('@/views/erp/contact-company/contact-company')
|
||||
// },
|
||||
{
|
||||
path: '/dashboard/user',
|
||||
name: 'Mine',
|
||||
meta: {
|
||||
title: '我的',
|
||||
keepAlive: false,
|
||||
showTabbar: true,
|
||||
permissionType: ROUTER_PERMISSION_TYPE.NEED_LOGIN.value
|
||||
},
|
||||
component: () => import('@/views/user/index')
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user