mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(playground): 加载组件表单配置资源失败
This commit is contained in:
parent
ccb4e675ab
commit
ba20eb8cf1
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user