diff --git a/src/router/index.js b/src/router/index.js index ac7440b..c94aa5c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -14,6 +14,7 @@ import { customerRouters } from './modules/customer' import { monitorRouters } from './modules/statistic' import { qualityCheckRouters } from './modules/qualityCheck' +import { soundsRouters } from './modules/sounds' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -78,6 +79,7 @@ ...knowledgeRouters, ...customerRouters, ...systemRouters, + ...soundsRouters, ...monitorRouters, ...qualityCheckRouters, { path: '*', redirect: '/404', hidden: true } diff --git a/src/router/index.js b/src/router/index.js index ac7440b..c94aa5c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -14,6 +14,7 @@ import { customerRouters } from './modules/customer' import { monitorRouters } from './modules/statistic' import { qualityCheckRouters } from './modules/qualityCheck' +import { soundsRouters } from './modules/sounds' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -78,6 +79,7 @@ ...knowledgeRouters, ...customerRouters, ...systemRouters, + ...soundsRouters, ...monitorRouters, ...qualityCheckRouters, { path: '*', redirect: '/404', hidden: true } diff --git a/src/router/modules/sounds.js b/src/router/modules/sounds.js index e90c1a1..1aed05e 100644 --- a/src/router/modules/sounds.js +++ b/src/router/modules/sounds.js @@ -3,19 +3,20 @@ export const soundsRouters = [{ path: 'sounds', component: Layout, - redirect: '/waitForCreate', + redirect: '/sounds', name: 'Sounds', - // alwaysShow: true, + alwaysShow: true, meta: { title: '录音管理', - icon: 'icon-config' // 图标 + icon: 'icon-config', // 图标 + permission: '/sounds' }, children: [ - // { - // path: '/waitForCreate', - // name: 'WaitForCreate', - // component: () => import('@/views/soundsManage/waitForCreate'), - // meta: { title: '待录事件', icon: '' } - // } + { + path: '/soundsList', + name: 'SoundsList', + component: () => import('@/views/soundsManage/soundsManage'), + meta: { title: '录音管理', icon: '', permission: '/soundsList' } + } ] }]