政策标签

This commit is contained in:
熊丽君
2021-07-15 11:56:51 +08:00
parent 764277766d
commit a0e05c3a20
19 changed files with 1138 additions and 68 deletions

View File

@ -0,0 +1,14 @@
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Router Modules */
import policyPage from './modules/policyPage'
export const DynamicRoutes = [
// 政策管理
policyPage,
]
export default DynamicRoutes

View File

@ -61,7 +61,7 @@ export const constantRoutes = [
path: 'index',
component: (resolve) => require(['@/views/index'], resolve),
name: '首页',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
meta: { title: '首页', noCache: true, affix: true }
}
]
},

View File

@ -0,0 +1,28 @@
/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout'
// 政策管理
const nestedRouter = {
path: '/policy',
component: Layout,
redirect: 'noRedirect',
meta: { title: '政策管理' },
children: [
{
path: 'library',
component: resolve =>
require(['@/views/policy/library/index'], resolve),
name: 'library',
meta: { title: '政策库' }
},
{
path: 'tag',
component: resolve => require(['@/views/policy/tag/index'], resolve),
name: 'tag',
meta: { title: '政策标签' }
}
]
}
export default nestedRouter