diff --git a/packages/base/SelectMenu/src/SelectOptionCollector.vue b/packages/base/SelectMenu/src/SelectOptionCollector.vue index 0db5894e4..6e27e0ef5 100644 --- a/packages/base/SelectMenu/src/SelectOptionCollector.vue +++ b/packages/base/SelectMenu/src/SelectOptionCollector.vue @@ -31,7 +31,8 @@ export default { return { options: [], isDestroying: false, - isMounting: true + isMounting: true, + isUpdatingOptions: false } }, computed: { @@ -53,6 +54,14 @@ export default { this.isMounting = false this.collectOptions() }, + updated () { + if (!this.isUpdatingOptions) { + this.isUpdatingOptions = true + this.collectOptions() + } else { + this.isUpdatingOptions = false + } + }, beforeDestroy () { this.isDestroying = true }, diff --git a/packages/common/AutoComplete/src/main.vue b/packages/common/AutoComplete/src/main.vue index 75bd8cded..df9ac154a 100644 --- a/packages/common/AutoComplete/src/main.vue +++ b/packages/common/AutoComplete/src/main.vue @@ -22,6 +22,7 @@