56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
import { Y_CODE_DESIGNER_URL, Y_CODE_V1_URL } from '@/constants';
|
|
|
|
const moduleName = 'micro';
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '/micro',
|
|
name: moduleName,
|
|
meta: {
|
|
title: '微应用容器',
|
|
icon: 'ant-design:appstore-outlined',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'designer',
|
|
name: `${moduleName}-designer`,
|
|
meta: {
|
|
title: '低代码编辑器',
|
|
keepAlive: true,
|
|
icon: 'ant-design:edit-outlined',
|
|
app: {
|
|
url: Y_CODE_DESIGNER_URL,
|
|
name: 'y-code-designer',
|
|
applicationId: 4,
|
|
sync: true,
|
|
alive: true,
|
|
degrade: true,
|
|
},
|
|
},
|
|
component: () => import('@/components/renderer-adapter/index.vue'),
|
|
},
|
|
{
|
|
path: 'y-code-v1',
|
|
name: `${moduleName}-y-code-v1`,
|
|
meta: {
|
|
title: '悦码 1.0',
|
|
keepAlive: true,
|
|
// hideInMenu: true,
|
|
icon: 'ant-design:delete-outlined',
|
|
app: {
|
|
url: Y_CODE_V1_URL,
|
|
name: 'y-code-v1',
|
|
// sync: true,
|
|
// alive: true,
|
|
degrade: true,
|
|
},
|
|
},
|
|
component: () => import('@/components/renderer-adapter/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|