@ -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);