refactor: 悦码项目重构

This commit is contained in:
wangxuefeng
2025-02-19 13:42:56 +08:00
parent c8c9406fd5
commit eab709f94f
494 changed files with 50986 additions and 27639 deletions

View File

@@ -0,0 +1,53 @@
import type { RouteRecordRaw } from 'vue-router';
// 微前端路由
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: '低代码编辑器',
icon: 'ant-design:edit-outlined',
app: {
url: 'https://localhost:5173',
name: 'low-code-designer',
sync: true,
alive: true,
degrade: true,
},
},
component: () => import('@/components/micro-container/index.vue'),
},
{
path: 'renderer',
name: `${moduleName}-renderer`,
meta: {
title: '低代码渲染器',
keepAlive: true,
hideInMenu: true,
icon: 'ant-design:eye-outlined',
app: {
url: 'https://localhost:9000',
name: 'low-code-renderer',
// sync: true,
// alive: true,
// degrade: true,
},
},
component: () => import('@/components/micro-container/index.vue'),
},
],
},
];
export default routes;