1
0
mirror of synced 2026-03-22 18:48:34 +08:00

fix(runtime): 获取dsl字段出错

This commit is contained in:
roymondchen
2022-05-20 14:35:07 +08:00
committed by jia000
parent 662a3d61ea
commit bb97c4c6d0
6 changed files with 7 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ import entry from '../comp-entry';
import App from './App';
declare global {
interface Window {
magicUiConfig: MApp[];
magicDSL: MApp[];
magicPresetComponents: any;
magicPresetConfigs: any;
magicPresetValues: any;
@@ -48,7 +48,7 @@ const getLocalConfig = (): MApp[] => {
};
const app = new Core({
config: ((getUrlParam('localPreview') ? getLocalConfig() : window.magicUiConfig) || [])[0] || {},
config: ((getUrlParam('localPreview') ? getLocalConfig() : window.magicDSL) || [])[0] || {},
curPage: getUrlParam('page'),
});