refactor: 悦码项目重构
This commit is contained in:
53
apps/platform/src/router/routes/modules/micro.ts
Normal file
53
apps/platform/src/router/routes/modules/micro.ts
Normal 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;
|
||||
Reference in New Issue
Block a user