Files
qhmes/jeecgboot-vue3/src/router/routes/staticRouter.ts

70 lines
1.5 KiB
Vue

import type { AppRouteRecordRaw } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
export const AI_ROUTE: AppRouteRecordRaw = {
path: '',
name: 'ai-parent',
component: LAYOUT,
meta: {
title: 'ai',
},
children: [
{
path: '/ai',
name: 'ai',
component: () => import('/@/views/dashboard/ai/index.vue'),
meta: {
title: 'AI助手',
},
},
],
};
export const PRINT_DESIGNER_ROUTE: AppRouteRecordRaw = {
path: '',
name: 'print-designer-parent',
component: LAYOUT,
meta: {
title: 'print-designer',
hideMenu: true,
hideChildrenInMenu: true,
},
children: [
{
path: '/print/designer',
name: 'print-designer',
component: () => import('/@/views/print/template/PrintDesigner.vue'),
meta: {
title: '打印设计器',
hideMenu: true,
hideTab: false,
},
},
],
};
export const PRINT_NATIVE_DESIGNER_ROUTE: AppRouteRecordRaw = {
path: '',
name: 'print-native-designer-parent',
component: LAYOUT,
meta: {
title: 'print-native-designer',
hideMenu: true,
hideChildrenInMenu: true,
},
children: [
{
path: '/print/native-designer',
name: 'print-native-designer',
component: () => import('/@/views/print/template/native/NativePrintDesigner.vue'),
meta: {
title: '原生打印设计器',
hideMenu: true,
hideTab: false,
},
},
],
};
export const staticRoutesList = [AI_ROUTE, PRINT_DESIGNER_ROUTE, PRINT_NATIVE_DESIGNER_ROUTE];