fix: fix the problem of white screen in custom initialization method

This commit is contained in:
liujuping 2023-02-09 15:21:28 +08:00 committed by 林熠
parent c3ce042c83
commit da1450ea1a
2 changed files with 7 additions and 2 deletions

View File

@ -170,6 +170,11 @@ body {
} }
.lc-workbench { .lc-workbench {
height: 100%;
display: flex;
flex-direction: column;
background-color: #edeff3;
&.engine-main { &.engine-main {
height: 100%; height: 100%;
display: flex; display: flex;

View File

@ -156,6 +156,8 @@ let engineContainer: HTMLElement;
export const version = VERSION_PLACEHOLDER; export const version = VERSION_PLACEHOLDER;
engineConfig.set('ENGINE_VERSION', version); engineConfig.set('ENGINE_VERSION', version);
registryInnerPlugin(designer, editor, plugins);
export async function init( export async function init(
container?: HTMLElement, container?: HTMLElement,
options?: IPublicTypeEngineOptions, options?: IPublicTypeEngineOptions,
@ -179,8 +181,6 @@ export async function init(
} }
engineConfig.setEngineOptions(engineOptions as any); engineConfig.setEngineOptions(engineOptions as any);
await registryInnerPlugin(designer, editor, plugins);
await plugins.init(pluginPreference as any); await plugins.init(pluginPreference as any);
const { Workbench } = common.skeletonCabin; const { Workbench } = common.skeletonCabin;