From 82319bb3cc0a02247ee19a15da985a40ddbbb1dd Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 7 Apr 2025 15:33:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20proGroupVo=20Images=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=BF=99=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=95=B0=E7=BB=84=E6=97=B6=E6=94=B9=E6=88=90null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 385304f..bda2707 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -20,6 +20,13 @@ const AuthAPI = { }, // 新增 addunit(data: any) { + console.log(data, '提示121'); + if (data.images.length == 0) { + data.images = null + } + if (data.proGroupVo.length == 0) { + data.proGroupVo = null + } return request({ url: `${baseURL}`, method: "post",