mallBackend/src/router/index.ts

114 lines
3.5 KiB
TypeScript
Raw Normal View History

2023-12-02 11:33:44 +08:00
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
2023-12-03 14:23:45 +08:00
2023-12-02 11:33:44 +08:00
const routes: Array<RouteRecordRaw> = [
{
path: '/index',
name: 'index',
2023-12-02 14:51:09 +08:00
component: () => import('views/AppMain.vue'),
2023-12-02 11:33:44 +08:00
meta: {
2023-12-02 14:51:09 +08:00
title: '主页面',
2023-12-02 11:33:44 +08:00
keepAlive: true,
2023-12-03 14:23:45 +08:00
AuthFlag: true,
routeListRoot: true
2023-12-02 15:30:19 +08:00
},
2023-12-03 14:23:45 +08:00
children:[
{
path: 'swiperConfig',
name: 'swiperConfig',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/swiperConfig/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '轮播图配置',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'specialInformationConfiguration',
name: 'specialInformationConfiguration',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/specialInformationConfiguration/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '专题资讯配置',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'privacyAgreement',
name: 'privacyAgreement',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/privacyAgreement/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '隐私协议模板管理',
keepAlive: true,
AuthFlag: true
}
},
2023-12-04 19:10:26 +08:00
// {
// path: 'enterpriseManagement',
// name: 'enterpriseManagement',
// component: () => import('views/enterpriseManagement/AppMain.vue'),
// meta: {
// title: '企业管理',
// keepAlive: true,
// AuthFlag: true
// },
// },
2023-12-03 14:23:45 +08:00
{
path: 'enterpriseType',
name: 'configuration',
component: () => import('views/enterpriseManagement/enterpriseType.vue'),
meta: {
title: '企业类型',
keepAlive: true,
AuthFlag: true
}
2023-12-02 15:30:19 +08:00
},
2023-12-03 14:23:45 +08:00
{
path: 'enterpriseEntryReview',
name: 'enterpriseEntryReview',
component: () => import('views/enterpriseManagement/enterpriseEntryReview.vue'),
meta: {
title: '企业入驻审核',
keepAlive: true,
AuthFlag: true
},
},
{
path: 'businessReview',
name: 'businessReview',
component: () => import('views/enterpriseManagement/businessReview.vue'),
meta: {
title: '企业业务开通审核',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'enterpriseInfo',
name: 'enterpriseInfo',
component: () => import('views/enterpriseManagement/enterpriseInfo.vue'),
meta: {
title: '企业信息',
keepAlive: true,
AuthFlag: true
}
}
2023-12-02 15:30:19 +08:00
]
2023-12-03 14:23:45 +08:00
},
2023-12-02 11:33:44 +08:00
]
const router = createRouter({
// 路由模式
history: createWebHashHistory(),
routes
})
export default router