解决JSearchSelect异步动态切换字典options未清空的问题

JSearchSelect 如果是异步,对于 props 传递 `:dict="computed(() => xxx)"` 的动态字典情况下,当第二次变更的字典下拉选项为空时,不会清空下拉选项,而是沿用了上一个字典的选项,我认为这是一个bug,故作此修复。
pull/8802/head
Dylan Kong 2025-09-05 10:16:20 +08:00 committed by GitHub
parent 434b42e9ed
commit e805ef0b75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@
}
}
} else {
options.value = [];
if (!dict) {
console.error('搜索组件未配置字典项');
} else {