mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-01-23 06:18:11 +00:00
fix(editor): 切换组件时会连续触发两次表单初始化
This commit is contained in:
parent
19678f6452
commit
c263564bb6
@ -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