update 路由优化

master
yinq 4 months ago
parent 789f090cfc
commit 44ecadd990

@ -329,34 +329,34 @@ export const dynamicRoutes: RouteRecordRaw[] = [
} }
] ]
}, },
{ // {
path: '/mes/product-order', // path: '/mes/product-order',
component: Layout, // component: Layout,
hidden: true, // hidden: true,
permissions: ['mes:orderInfo:edit'], // permissions: ['mes:orderInfo:edit'],
children: [ // children: [
{ // {
path: 'index/:productOrderId(\\d+)', // path: 'index/:productOrderId(\\d+)',
component: () => import('@/views/mes/orderInfo/editProductOrder.vue'), // component: () => import('@/views/mes/orderInfo/editProductOrder.vue'),
name: 'productOrderEdit', // name: 'productOrderEdit',
meta: { title: '生产任务', activeMenu: '/mes/orderInfo', noCache: true } // meta: { title: '生产任务', activeMenu: '/mes/orderInfo', noCache: true }
} // }
] // ]
}, // },
{ // {
path: '/mes/product-order', // path: '/mes/product-order',
component: Layout, // component: Layout,
hidden: true, // hidden: true,
permissions: ['mes:orderInfo:edit'], // permissions: ['mes:orderInfo:edit'],
children: [ // children: [
{ // {
path: 'index', // path: 'index',
component: () => import('@/views/mes/orderInfo/batchAddOrder.vue'), // component: () => import('@/views/mes/orderInfo/batchAddOrder.vue'),
name: 'batchAddOrder', // name: 'batchAddOrder',
meta: { title: '生产任务', activeMenu: '/mes/orderInfo', noCache: true } // meta: { title: '生产任务', activeMenu: '/mes/orderInfo', noCache: true }
} // }
] // ]
}, // },
{ {
path: '/dms/deviceMode/mode-edit', path: '/dms/deviceMode/mode-edit',
component: Layout, component: Layout,
@ -518,35 +518,35 @@ export const dynamicRoutes: RouteRecordRaw[] = [
] ]
}, },
{ // {
path: '/ai/skill/knowledgeBaseDocs', // path: '/ai/skill/knowledgeBaseDocs',
component: Layout, // component: Layout,
hidden: true, // hidden: true,
permissions: ['ai:aiKnowledgeBaseDocs:list'], // permissions: ['ai:aiKnowledgeBaseDocs:list'],
children: [ // children: [
{ // {
path: 'index', // path: 'index',
component: () => import('@/views/ai/skill/aiKnowledge/knowledgeBaseDocs.vue'), // component: () => import('@/views/ai/skill/aiKnowledge/knowledgeBaseDocs.vue'),
name: 'KnowledgeBaseDocs', // name: 'KnowledgeBaseDocs',
meta: { title: '知识库详情', activeMenu: '/ai/skill/aiKnowledge', noCache: true } // meta: { title: '知识库详情', activeMenu: '/ai/skill/aiKnowledge', noCache: true }
} // }
] // ]
}, // },
//
{ // {
path: '/ai/skill/knowledgeBaseQA', // path: '/ai/skill/knowledgeBaseQA',
component: Layout, // component: Layout,
hidden: true, // hidden: true,
permissions: ['ai:aiKnowledgeBaseDocs:qa'], // permissions: ['ai:aiKnowledgeBaseDocs:qa'],
children: [ // children: [
{ // {
path: 'index', // path: 'index',
component: () => import('@/views/ai/skill/aiChat/index.vue'), // component: () => import('@/views/ai/skill/aiChat/index.vue'),
name: 'KnowledgeBaseQA', // name: 'KnowledgeBaseQA',
meta: { title: '知识库问答', activeMenu: '/ai/skill/aiKnowledge', noCache: true } // meta: { title: '知识库问答', activeMenu: '/ai/skill/aiKnowledge', noCache: true }
} // }
] // ]
}, // },
// { // {
// path: '/knowledge-base-preview', // path: '/knowledge-base-preview',

Loading…
Cancel
Save