在代码中,getVoucherById(params)应该是一个函数调用,其中params可能是一个对象。然而,在请求的URL中,params被转换为字符串,因此导致了[object%20Object]。要解决这个问题,可以将params作为参数传递给getVoucherListById函数,而不是将其转换为URLSearchParams对象。

获取凭证组下的凭证列表 getVoucherList thisloading = true; if !thisvoucherGroupId return; thisvoucherQueryParamaccountsId = thisaccountsId; thisvoucherQueryParamvouche

原文地址: https://www.cveoy.top/t/topic/i4Nj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录