1
0
mirror of synced 2026-03-23 02:58:34 +08:00

fix(runtime): 切换设计窗体大小时,同时修改app

This commit is contained in:
i33
2022-09-27 12:37:14 +08:00
committed by jia000
parent 024e908947
commit b3bae36d94
8 changed files with 25 additions and 4 deletions

View File

@@ -29,11 +29,16 @@ import plugins from '../.tmagic/plugin-entry';
import App from './App';
const designWidth = document.documentElement.getBoundingClientRect().width;
const app = new Core({
designWidth,
config: {},
platform: 'editor',
});
window.appInstance = app;
let curPageId = '';
const updateConfig = (root: MApp) => {