mirror of https://github.com/jeecgboot/jeecg-boot
解决JSearchSelect异步动态切换字典options未清空的问题
JSearchSelect 如果是异步,对于 props 传递 `:dict="computed(() => xxx)"` 的动态字典情况下,当第二次变更的字典下拉选项为空时,不会清空下拉选项,而是沿用了上一个字典的选项,我认为这是一个bug,故作此修复。pull/8802/head
parent
434b42e9ed
commit
e805ef0b75
|
@ -301,6 +301,7 @@
|
|||
}
|
||||
}
|
||||
} else {
|
||||
options.value = [];
|
||||
if (!dict) {
|
||||
console.error('搜索组件未配置字典项');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue