feat: 可通过配置入参来初始化编辑器
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import Postmate from 'postmate';
|
||||
import { Spin, Alert, Button } from 'ant-design-vue';
|
||||
// import { Spin, Alert, Button } from 'ant-design-vue';
|
||||
|
||||
const route = useRoute();
|
||||
const MAX_RETRIES = 3;
|
||||
@@ -15,7 +15,6 @@
|
||||
loading.value = true;
|
||||
errorMessage.value = '';
|
||||
const container = document.getElementById('low-code-adapter');
|
||||
console.log('container', container);
|
||||
if (!container) {
|
||||
errorMessage.value = '容器元素未找到';
|
||||
loading.value = false;
|
||||
|
||||
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user