添加一级菜单路由,左侧菜单收缩问题及上传图片处理
This commit is contained in:
@ -7,6 +7,9 @@ Vue.use(Router);
|
|||||||
import policyPage from './modules/policyPage';
|
import policyPage from './modules/policyPage';
|
||||||
import configPage from './modules/configPage';
|
import configPage from './modules/configPage';
|
||||||
import transferPage from './modules/transferPage';
|
import transferPage from './modules/transferPage';
|
||||||
|
import customerManagement from './modules/customerManagement';
|
||||||
|
import accountManagement from './modules/accountManagement';
|
||||||
|
import customerService from './modules/customerService';
|
||||||
|
|
||||||
export const DynamicRoutes = [
|
export const DynamicRoutes = [
|
||||||
// 政策管理
|
// 政策管理
|
||||||
@ -14,7 +17,13 @@ export const DynamicRoutes = [
|
|||||||
// 前端配置
|
// 前端配置
|
||||||
configPage,
|
configPage,
|
||||||
// 技术转移
|
// 技术转移
|
||||||
transferPage
|
transferPage,
|
||||||
|
// 客户管理
|
||||||
|
customerManagement,
|
||||||
|
// 账号管理
|
||||||
|
accountManagement,
|
||||||
|
// 客服中心
|
||||||
|
customerService
|
||||||
];
|
];
|
||||||
|
|
||||||
export default DynamicRoutes;
|
export default DynamicRoutes;
|
||||||
|
17
src/router/modules/accountManagement.js
Normal file
17
src/router/modules/accountManagement.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import Layout from '@/layout';
|
||||||
|
// 账号管理
|
||||||
|
const nestedRouter = {
|
||||||
|
path: '',
|
||||||
|
component: Layout,
|
||||||
|
redirect: 'index',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'account',
|
||||||
|
component: resolve => require(['@/views/account/index'], resolve),
|
||||||
|
name: '账号管理',
|
||||||
|
meta: { title: '账号管理', noCache: true, affix: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nestedRouter;
|
17
src/router/modules/customerManagement.js
Normal file
17
src/router/modules/customerManagement.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import Layout from '@/layout';
|
||||||
|
// 客户管理
|
||||||
|
const nestedRouter = {
|
||||||
|
path: '',
|
||||||
|
component: Layout,
|
||||||
|
redirect: 'index',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'customer',
|
||||||
|
component: resolve => require(['@/views/customer/index'], resolve),
|
||||||
|
name: '客户管理',
|
||||||
|
meta: { title: '客户管理', noCache: true, affix: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nestedRouter;
|
17
src/router/modules/customerService.js
Normal file
17
src/router/modules/customerService.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import Layout from '@/layout';
|
||||||
|
// 客服中心
|
||||||
|
const nestedRouter = {
|
||||||
|
path: '',
|
||||||
|
component: Layout,
|
||||||
|
redirect: 'index',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'service',
|
||||||
|
component: resolve => require(['@/views/service/index'], resolve),
|
||||||
|
name: '客服中心',
|
||||||
|
meta: { title: '客服中心', noCache: true, affix: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nestedRouter;
|
5
src/views/account/index.vue
Normal file
5
src/views/account/index.vue
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
account
|
||||||
|
</div>
|
||||||
|
</template>
|
5
src/views/customer/index.vue
Normal file
5
src/views/customer/index.vue
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
客户管理
|
||||||
|
</div>
|
||||||
|
</template>
|
5
src/views/service/index.vue
Normal file
5
src/views/service/index.vue
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
Service
|
||||||
|
</div>
|
||||||
|
</template>
|
Reference in New Issue
Block a user