组件传参修改

dev-scheduling
jinna 4 days ago
parent cbd4e907b9
commit a1a03ee969
  1. 2
      src/components/jh-select/index.vue

@ -98,6 +98,7 @@ export default {
}, },
methods: { methods: {
debounce(func, wait) { debounce(func, wait) {
console.log('22222222222222222')
let timeout = null; let timeout = null;
return (...args) => { return (...args) => {
clearTimeout(timeout); clearTimeout(timeout);
@ -269,6 +270,7 @@ export default {
[this.searchKey]: this.searchText, [this.searchKey]: this.searchText,
...this.params, ...this.params,
}; };
if(!this.searchText) delete sendData[this.searchKey];
let res; let res;
if (this.apiMethod.toLowerCase() === 'post') { if (this.apiMethod.toLowerCase() === 'post') {
res = await axios.post(this.apiUrl, sendData); res = await axios.post(this.apiUrl, sendData);

Loading…
Cancel
Save