chore: 容器框架升级,修复项目命令行异常问题
This commit is contained in:
56
apps/platform/src/router/routes/modules/micro.ts
Normal file
56
apps/platform/src/router/routes/modules/micro.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { VITE_DESIGNER_URL, VITE_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: VITE_DESIGNER_URL,
|
||||
name: 'y-code-designer',
|
||||
projectId: 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: VITE_V1_URL,
|
||||
name: 'y-code-v1',
|
||||
// sync: true,
|
||||
// alive: true,
|
||||
degrade: true,
|
||||
},
|
||||
},
|
||||
component: () => import('#/components/renderer-adapter/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user