perf: 优化远程数据选择框,选择数据时不刷新闪烁

This commit is contained in:
xiaojunnuo
2026-03-20 18:04:13 +08:00
parent b1ff163a28
commit 7f6a8bc87e

View File

@@ -235,9 +235,10 @@ watch(
const { form } = value;
const oldForm: any = oldValue?.form;
let changed = oldForm == null || optionsRef.value.length == 0;
debugger;
if (props.watches && props.watches.length > 0) {
for (const key of props.watches) {
if (oldForm && form[key] != oldForm[key]) {
if (oldForm && JSON.stringify(form[key]) != JSON.stringify(oldForm[key])) {
changed = true;
break;
}