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

This commit is contained in:
roymondchen 2022-04-08 21:08:14 +08:00 committed by jia000
parent 554bc4b5c1
commit 31373500c2

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);