fix(商品审核): 优化审核功能,使用FormData处理请求数据,提升代码可读性和维护性

This commit is contained in:
Ryan Ran
2025-09-23 14:01:53 +08:00
parent bb864e72b3
commit bb610a7cd8
2 changed files with 52 additions and 46 deletions

View File

@@ -276,7 +276,11 @@ export default {
content: "您确认要审核" + examine + " " + v.goodsName + " ?",
loading: true,
onOk: () => {
authGoods(v.id, this.goodsAuditForm).then((res) => {
let formData = new FormData();
formData.append('goodsIds', v.id);
formData.append('authFlag', this.goodsAuditForm.authFlag);
authGoods(formData).then((res) => {
this.$Modal.remove();
if (res.success) {
this.$Message.success("审核成功");