完善前端vue项目
This commit is contained in:
@@ -1,77 +0,0 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'ic:baseline-view-in-ar',
|
||||
keepAlive: false,
|
||||
order: 2,
|
||||
title: $t('ai.title'),
|
||||
},
|
||||
name: 'Ai',
|
||||
path: '/ai',
|
||||
children: [
|
||||
{
|
||||
name: 'IVA',
|
||||
path: '/ai/iva',
|
||||
meta: {
|
||||
authority: ['iva'],
|
||||
icon: 'mdi:video',
|
||||
title: $t('ai.intelligence_video_analysis'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/ai/iva/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'SCA',
|
||||
path: '/ai/sca',
|
||||
meta: {
|
||||
authority: ['sca'],
|
||||
icon: 'mdi:ice-cream',
|
||||
title: $t('ai.silkworm_cocoon_analysis'),
|
||||
keepAlive: false,
|
||||
},
|
||||
component: () => import('#/views/ai/sca/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'YSA',
|
||||
path: '/ai/ysa',
|
||||
meta: {
|
||||
authority: ['ysa'],
|
||||
icon: 'mdi:account-key-outline',
|
||||
title: $t('ai.young_silkworm_analysis'),
|
||||
keepAlive: false,
|
||||
},
|
||||
component: () => import('#/views/ai/ysa/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'RAG',
|
||||
path: '/ai/rag',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:wall-fire',
|
||||
iframeSrc: 'http://s1.ronsunny.cn:13010/',
|
||||
keepAlive: false,
|
||||
title: '检索增强生成',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CVAT',
|
||||
path: '/ai/cvat',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:abjad-arabic',
|
||||
link: 'http://171.212.101.199:13013/',
|
||||
keepAlive: true,
|
||||
title: '标注平台入口',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
@@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/workspace',
|
||||
component: () => import('#/views/dashboard/workspace/index.vue'),
|
||||
meta: {
|
||||
icon: 'carbon:workspace',
|
||||
icon: 'mdi:home',
|
||||
title: $t('page.dashboard.workspace'),
|
||||
},
|
||||
},
|
||||
@@ -27,7 +27,7 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import('#/views/remote/index.vue'),
|
||||
meta: {
|
||||
authority: ['remote'],
|
||||
icon: 'mdi:home',
|
||||
icon: 'carbon:workspace',
|
||||
title: $t('remote.remote'),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user