|
@@ -39,12 +39,6 @@ import MainDefaultLayout from '@/layout/main/default/index.vue'
|
|
|
* all roles can be accessed
|
|
|
*/
|
|
|
export const constantRoutes = [
|
|
|
- // {
|
|
|
- // path: '/login',
|
|
|
- // component: () => import('@/views/login/index.vue'),
|
|
|
- // hidden: true,
|
|
|
- // },
|
|
|
-
|
|
|
{
|
|
|
path: '/404',
|
|
|
component: () => import('@/views/404.vue'),
|
|
@@ -197,160 +191,7 @@ export const constantRoutes = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- // {
|
|
|
- // path: '/mhgl1',
|
|
|
- // component: AppLayout,
|
|
|
- // redirect: '/mhgl/tzgg/index.html',
|
|
|
- // name: 'mhgl',
|
|
|
- // meta: {
|
|
|
- // title: '门户管理',
|
|
|
- // icon: 'el-icon-document-copy',
|
|
|
- // },
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'tzgg',
|
|
|
- // name: 'tzgg',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'tzgg_index',
|
|
|
- // component: () => import('@/views/mhgl/tzgg/index.vue'),
|
|
|
- // meta: { title: '通知公告' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'hdgg',
|
|
|
- // name: 'hdgg',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'hdgg_index',
|
|
|
- // component: () => import('@/views/mhgl/hdgg/index.vue'),
|
|
|
- // meta: { title: '活动公告' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'yxzp',
|
|
|
- // name: 'yxzp',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'yxzp_index',
|
|
|
- // component: () => import('@/views/mhgl/yxzp/index.vue'),
|
|
|
- // meta: { title: '优秀作品' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'wjdc',
|
|
|
- // name: 'wjdc',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'wjdc_index',
|
|
|
- // component: () => import('@/views/mhgl/wjdc/index.vue'),
|
|
|
- // meta: { title: '问卷调查' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'tplb',
|
|
|
- // name: 'tplb',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'tplb_index',
|
|
|
- // component: () => import('@/views/mhgl/tplb/index.vue'),
|
|
|
- // meta: { title: '投票列表' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/mhgl2',
|
|
|
- // component: AppLayout,
|
|
|
- // redirect: '/mhgl/tzgg/index.html',
|
|
|
- // name: 'mhgl',
|
|
|
- // meta: {
|
|
|
- // title: '门户管理',
|
|
|
- // icon: 'el-icon-document-copy',
|
|
|
- // },
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'tzgg',
|
|
|
- // name: 'tzgg',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'tzgg_index',
|
|
|
- // component: () => import('@/views/mhgl/tzgg/index.vue'),
|
|
|
- // meta: { title: '通知公告' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'hdgg',
|
|
|
- // name: 'hdgg',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'hdgg_index',
|
|
|
- // component: () => import('@/views/mhgl/hdgg/index.vue'),
|
|
|
- // meta: { title: '活动公告' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'yxzp',
|
|
|
- // name: 'yxzp',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'yxzp_index',
|
|
|
- // component: () => import('@/views/mhgl/yxzp/index.vue'),
|
|
|
- // meta: { title: '优秀作品' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'wjdc',
|
|
|
- // name: 'wjdc',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'wjdc_index',
|
|
|
- // component: () => import('@/views/mhgl/wjdc/index.vue'),
|
|
|
- // meta: { title: '问卷调查' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'tplb',
|
|
|
- // name: 'tplb',
|
|
|
- // component: MainDefaultLayout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index.html',
|
|
|
- // name: 'tplb_index',
|
|
|
- // component: () => import('@/views/mhgl/tplb/index.vue'),
|
|
|
- // meta: { title: '投票列表' },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true },
|
|
|
]
|
|
@@ -376,3 +217,8 @@ export default router
|
|
|
=====================================================================================
|
|
|
=====================================================================================
|
|
|
*/
|
|
|
+import getPageTitle from '@/utils/get-page-title'
|
|
|
+router.beforeEach(async (to, from, next) => {
|
|
|
+ document.title = getPageTitle(to.meta.title)
|
|
|
+ next()
|
|
|
+})
|