为什么在选中多选框提交的时候没有清空多选框 提交查询凭证按钮 handlesumit thisloading = true; let data = thisselectedRowsmaprow = row; let voucherId = thisselectedRowsmaprow = rowvoucherId; let data=t
在提交查询凭证按钮的handlesumit函数中,多选框没有被清空的原因可能是因为在调用addVoucherList接口之前,没有对selectedRows进行清空操作。在函数的最后,可以添加代码this.selectedRows = []来清空selectedRows数组,以便下一次的选择。
原文地址: https://www.cveoy.top/t/topic/i7gz 著作权归作者所有。请勿转载和采集!