fix(playground): 加载组件表单配置资源失败

This commit is contained in:
roymondchen 2022-12-07 18:57:30 +08:00
parent ccb4e675ab
commit ba20eb8cf1

View File

@ -158,13 +158,13 @@ const save = () => {
editor.value?.editorService.resetModifiedNodeId(); editor.value?.editorService.resetModifiedNodeId();
}; };
asyncLoadJs(`${VITE_ENTRY_PATH}/config/index.umd.js`).then(() => { asyncLoadJs(`${VITE_ENTRY_PATH}/config/index.umd.cjs`).then(() => {
propsConfigs.value = (globalThis as any).magicPresetConfigs; propsConfigs.value = (globalThis as any).magicPresetConfigs;
}); });
asyncLoadJs(`${VITE_ENTRY_PATH}/value/index.umd.js`).then(() => { asyncLoadJs(`${VITE_ENTRY_PATH}/value/index.umd.cjs`).then(() => {
propsValues.value = (globalThis as any).magicPresetValues; propsValues.value = (globalThis as any).magicPresetValues;
}); });
asyncLoadJs(`${VITE_ENTRY_PATH}/event/index.umd.js`).then(() => { asyncLoadJs(`${VITE_ENTRY_PATH}/event/index.umd.cjs`).then(() => {
eventMethodList.value = (globalThis as any).magicPresetEvents; eventMethodList.value = (globalThis as any).magicPresetEvents;
}); });