fix(editor): 切换组件时会连续触发两次表单初始化
This commit is contained in:
@@ -39,9 +39,9 @@ export default defineComponent({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
values.value = node.value;
|
|
||||||
const type = node.value.type || (node.value.items ? 'container' : 'text');
|
const type = node.value.type || (node.value.items ? 'container' : 'text');
|
||||||
curFormConfig.value = (await services?.propsService.getPropsConfig(type)) || [];
|
curFormConfig.value = (await services?.propsService.getPropsConfig(type)) || [];
|
||||||
|
values.value = node.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
watchEffect(init);
|
watchEffect(init);
|
||||||
|
|||||||
Reference in New Issue
Block a user