diff --git a/framework/sdk-parent/frontend/src/components/template/CustomFiledComponent.vue b/framework/sdk-parent/frontend/src/components/template/CustomFiledComponent.vue index bb5cdb737d..9e220dd161 100644 --- a/framework/sdk-parent/frontend/src/components/template/CustomFiledComponent.vue +++ b/framework/sdk-parent/frontend/src/components/template/CustomFiledComponent.vue @@ -330,7 +330,10 @@ export default { handleClear() { if (this.originOptions && this.data.inputSearch) { // 置空搜索时,恢复回原始选项 - this.data.options = this.originOptions; + // 不设置timeout会再设置选项值之前就清空了 + setTimeout(() => { + this.data.options = this.originOptions; + }, 200); } }, stopLoading() {