开发: 添加及修改路由

This commit is contained in:
zhengw
2023-04-17 17:47:31 +08:00
parent f4644b6ba2
commit bc8bb916ee
12 changed files with 711 additions and 145 deletions

View File

@@ -29,58 +29,69 @@ export default [
// component: './Welcome',
// },
{
path: '/departments',
path: '/scrm',
name: 'scrm',
icon: 'crown',
// access: 'canAdmin',
routes: [
{
path: '/departments',
redirect: '/departments/page/list',
path: '/scrm',
redirect: '/scrm/custom/workbench',
},
{
path: '/departments/page',
name: '部门管理',
// hideInBreadcrumb: true,
// component: './Admin',
path: '/scrm/custom',
name: '客户管理',
routes: [
{
path: '/departments/page',
redirect: '/departments/page/list',
path: '/scrm/custom',
redirect: '/scrm/custom/workbench',
},
{
name: '工作台',
icon: 'table',
path: '/scrm/custom/workbench',
component: './Workbench',
},
{
name: '客户列表',
icon: 'table',
path: '/scrm/custom/list',
component: './CustomList',
},
],
},
{
path: '/scrm/dep',
name: '部门管理',
routes: [
{
path: '/scrm/dep',
redirect: '/scrm/dep/list',
},
{
name: '部门员工',
icon: 'table',
path: '/departments/page/list',
path: '/scrm/dep/list',
component: './DepartmentsList',
},
],
},
{
path: '/scrm/chat',
name: '聊天记录',
routes: [
{
path: '/scrm/chat',
redirect: '/scrm/chat/list',
},
{
name: '成员聊天',
icon: 'table',
path: '/departments/page/list2',
component: './ChatLogs',
},
{
name: '客户聊天',
icon: 'table',
path: '/departments/page/list3',
path: '/scrm/chat/list',
component: './ChatLogs',
},
],
},
// {
// path: '/departments/sub-page2',
// name: '商品',
// // component: './TableList',
// routes: [
// {
// name: '列表',
// icon: 'table',
// path: '/departments/sub-page2/list',
// component: './TableList',
// },
// ],
// },
],
},
@@ -92,7 +103,7 @@ export default [
// },
{
path: '/',
redirect: '/departments',
redirect: '/scrm',
},
{
path: '*',