mirror of
https://github.com/certd/certd.git
synced 2026-04-29 00:28:11 +08:00
perf: 优化远程数据选择框,选择数据时不刷新闪烁
This commit is contained in:
@@ -235,9 +235,10 @@ watch(
|
|||||||
const { form } = value;
|
const { form } = value;
|
||||||
const oldForm: any = oldValue?.form;
|
const oldForm: any = oldValue?.form;
|
||||||
let changed = oldForm == null || optionsRef.value.length == 0;
|
let changed = oldForm == null || optionsRef.value.length == 0;
|
||||||
|
debugger;
|
||||||
if (props.watches && props.watches.length > 0) {
|
if (props.watches && props.watches.length > 0) {
|
||||||
for (const key of props.watches) {
|
for (const key of props.watches) {
|
||||||
if (oldForm && form[key] != oldForm[key]) {
|
if (oldForm && JSON.stringify(form[key]) != JSON.stringify(oldForm[key])) {
|
||||||
changed = true;
|
changed = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user