1
0
mirror of synced 2025-12-10 11:48:29 +08:00

fix(editor): 切换组件时会连续触发两次表单初始化

This commit is contained in:
roymondchen
2022-04-08 21:08:14 +08:00
parent 19678f6452
commit c263564bb6

View File

@@ -39,9 +39,9 @@ export default defineComponent({
return;
}
values.value = node.value;
const type = node.value.type || (node.value.items ? 'container' : 'text');
curFormConfig.value = (await services?.propsService.getPropsConfig(type)) || [];
values.value = node.value;
};
watchEffect(init);