政策标签
This commit is contained in:
14
src/router/dynamicRoutes.js
Normal file
14
src/router/dynamicRoutes.js
Normal 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
|
||||
@ -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 }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
28
src/router/modules/policyPage.js
Normal file
28
src/router/modules/policyPage.js
Normal 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
|
||||
Reference in New Issue
Block a user