| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- import Layout from '@/layouts/RouterView'
- import i18n from '@/locales'
- import { isScopedPolicyMenuHidden } from '@/utils/scopedPolicy'
- import { hasSetupKey } from '@/utils/auth'
- const Llm = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm')
- const AppLlm = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/app-llm')
- const AppLlmSku = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/app-llm-sku')
- const LlmSku = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-sku')
- const LlmSkuCreate = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-sku/create/index')
- const LlmInstantmodel = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-instantmodel')
- const LlmImage = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-image')
- const LlmInstantmodelImportCommunity = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-instantmodel/import-community')
- const LlmImageImportCommunity = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm-image/import-community')
- const LlmCreate = () => import(/* webpackChunkName: "k8s" */ /* webpackPrefetch: true */ '@Ai/views/llm/create')
- export default {
- index: 61,
- meta: {
- label: i18n.t('aice.ai'),
- icon: 'menu-ai',
- },
- menus: [
- // 人工智能-应用
- {
- meta: {
- label: i18n.t('common.application'),
- },
- submenus: [
- {
- path: '/app-llm',
- meta: {
- label: i18n.t('aice.app_llm'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.app_llm')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'AppLlmList',
- path: '',
- component: AppLlm,
- },
- {
- name: 'LlmCreate',
- path: 'create',
- component: LlmCreate,
- },
- ],
- },
- {
- path: '/app-llm-sku',
- meta: {
- label: i18n.t('aice.app_llm_sku'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.app_llm_sku')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'AppLlmSkuList',
- path: '',
- component: AppLlmSku,
- },
- {
- name: 'LlmSkuCreate',
- path: 'create',
- component: LlmSkuCreate,
- },
- ],
- },
- ],
- },
- // 人工智能-推理
- {
- meta: {
- label: i18n.t('common.inference'),
- },
- submenus: [
- {
- path: '/llm',
- meta: {
- label: i18n.t('aice.llm'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.llm')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'LlmList',
- path: '',
- component: Llm,
- },
- {
- name: 'LlmCreate',
- path: 'create',
- component: LlmCreate,
- },
- ],
- },
- {
- path: '/llm-sku',
- meta: {
- label: i18n.t('aice.llm_sku'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.llm_sku')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'LlmSkuList',
- path: '',
- component: LlmSku,
- },
- {
- name: 'LlmSkuCreate',
- path: 'create',
- component: LlmSkuCreate,
- },
- ],
- },
- {
- path: '/llm-instantmodel',
- meta: {
- label: i18n.t('aice.llm_instantapp'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.llm_instantmodel')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'LlmInstantmodelList',
- path: '',
- component: LlmInstantmodel,
- },
- {
- name: 'LlmInstantmodelImportCommunity',
- path: 'import-community',
- component: LlmInstantmodelImportCommunity,
- },
- ],
- },
- ],
- },
- // 人工智能-镜像
- {
- meta: {
- label: i18n.t('common.image'),
- },
- submenus: [
- {
- path: '/llm-image',
- meta: {
- label: i18n.t('aice.llm_image'),
- hidden: () => {
- if (isScopedPolicyMenuHidden('sub_hidden_menus.llm_image')) {
- return true
- }
- return !hasSetupKey(['pod'])
- },
- },
- component: Layout,
- children: [
- {
- name: 'LlmImageList',
- path: '',
- component: LlmImage,
- },
- {
- name: 'LlmImageImportCommunity',
- path: 'import-community',
- component: LlmImageImportCommunity,
- },
- ],
- },
- ],
- },
- ],
- }
|