diff --git a/src/components/jh-select/index.vue b/src/components/jh-select/index.vue index d9db12a0..1ef500d7 100644 --- a/src/components/jh-select/index.vue +++ b/src/components/jh-select/index.vue @@ -98,6 +98,7 @@ export default { }, methods: { debounce(func, wait) { + console.log('22222222222222222') let timeout = null; return (...args) => { clearTimeout(timeout); @@ -269,6 +270,7 @@ export default { [this.searchKey]: this.searchText, ...this.params, }; + if(!this.searchText) delete sendData[this.searchKey]; let res; if (this.apiMethod.toLowerCase() === 'post') { res = await axios.post(this.apiUrl, sendData);