mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): 切换组件时会连续触发两次表单初始化
This commit is contained in:
parent
554bc4b5c1
commit
31373500c2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user