feat: 可通过配置入参来初始化编辑器

This commit is contained in:
wangxuefeng
2025-03-05 14:34:40 +08:00
parent 4f920b0ac2
commit dd69823a00
7 changed files with 94 additions and 117 deletions

View File

@@ -21,31 +21,33 @@ const routes: Array<RouteRecordRaw> = [
app: {
url: 'https://localhost:10011',
name: 'y-code-designer',
applicationId: 4,
// 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:10010',
name: 'y-code-renderer',
// sync: true,
// alive: true,
degrade: true,
},
},
component: () => import('@/components/micro-container/index.vue'),
component: () => import('@/components/renderer-adapter/index.vue'),
},
// {
// path: 'renderer',
// name: `${moduleName}-renderer`,
// meta: {
// title: '低代码渲染器',
// keepAlive: true,
// // hideInMenu: true,
// icon: 'ant-design:eye-outlined',
// app: {
// url: 'https://localhost:10010',
// name: 'y-code-renderer',
// applicationId: 4,
// // sync: true,
// // alive: true,
// // degrade: true,
// },
// },
// component: () => import('@/components/renderer-adapter/index.vue'),
// },
{
path: 'y-code-v1',
name: `${moduleName}-y-code-v1`,