perf: lighten routes and improve ai runtime events
This commit is contained in:
@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
meta: { hideInMenu: true, title: '控制中心' },
|
||||
name: 'ControlCenterLegacyRedirect',
|
||||
path: '/control-center',
|
||||
redirect: '/page-render/main_home',
|
||||
@@ -17,13 +17,13 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import('#/views/_core/page-render/index.vue'),
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
meta: { hideInMenu: true, title: '知识库' },
|
||||
name: 'AIKnowledgeLegacyRedirect',
|
||||
path: '/ai-platform/knowledge',
|
||||
redirect: '/ai-platform/knowledge-base',
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
meta: { hideInMenu: true, title: '知识库' },
|
||||
name: 'SubAppAIKnowledgeLegacyRedirect',
|
||||
path: '/app/:appCode/ai-platform/knowledge',
|
||||
redirect: (to) => `/app/${to.params.appCode}/ai-platform/knowledge-base`,
|
||||
@@ -65,13 +65,13 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import('#/views/ai-platform/model/index.vue'),
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
meta: { hideInMenu: true, title: '知识库详情' },
|
||||
name: 'AIKnowledgeLegacyDetailRedirect',
|
||||
path: '/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) => `/ai-platform/knowledge-base/detail/${to.params.id}`,
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
meta: { hideInMenu: true, title: '知识库详情' },
|
||||
name: 'SubAppAIKnowledgeLegacyDetailRedirect',
|
||||
path: '/app/:appCode/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) =>
|
||||
|
||||
Reference in New Issue
Block a user