Commit 283688d5e3235f3716f02f2db66ef29c8d36de96

Authored by ww
1 parent a277416b

perf: 看板管理优化切换控制组件时数据源重置属性选择款或服务选择框

@@ -269,10 +269,8 @@ @@ -269,10 +269,8 @@
269 watch( 269 watch(
270 () => props.frontId, 270 () => props.frontId,
271 async (target, oldTarget) => { 271 async (target, oldTarget) => {
272 - if (isControlComponent(oldTarget!)) return;  
273 - if (isControlComponent(target!)) {  
274 - await resetFormFields();  
275 - } 272 + if (isControlComponent(oldTarget!) && isControlComponent(target!)) return;
  273 + await resetFormFields();
276 } 274 }
277 ); 275 );
278 276