fix(runtime): 获取dsl字段出错
This commit is contained in:
@@ -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'),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user