Align admin shell with reference app
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/ai-platform/knowledge',
|
||||
redirect: '/ai-platform/knowledge-base',
|
||||
},
|
||||
{
|
||||
path: '/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) => `/ai-platform/knowledge-base/detail/${to.params.id}`,
|
||||
},
|
||||
{
|
||||
path: '/app/:appCode/ai-platform/knowledge',
|
||||
redirect: (to) => `/app/${to.params.appCode}/ai-platform/knowledge-base`,
|
||||
},
|
||||
{
|
||||
path: '/app/:appCode/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) =>
|
||||
`/app/${to.params.appCode}/ai-platform/knowledge-base/detail/${to.params.id}`,
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -70,7 +87,7 @@ const routes: RouteRecordRaw[] = [
|
||||
title: '知识库详情',
|
||||
},
|
||||
name: 'AIKnowledgeDetail',
|
||||
path: '/ai-platform/knowledge/detail/:id',
|
||||
path: '/ai-platform/knowledge-base/detail/:id',
|
||||
component: () => import('#/views/ai-platform/knowledge/detail/index.vue'),
|
||||
},
|
||||
// 知识库详情 - 子应用
|
||||
@@ -80,7 +97,7 @@ const routes: RouteRecordRaw[] = [
|
||||
title: '知识库详情',
|
||||
},
|
||||
name: 'SubAppAIKnowledgeDetail',
|
||||
path: '/app/:appCode/ai-platform/knowledge/detail/:id',
|
||||
path: '/app/:appCode/ai-platform/knowledge-base/detail/:id',
|
||||
component: () => import('#/views/ai-platform/knowledge/detail/index.vue'),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user