feat: proGroupVo Images 修改这两个字段为空数组时改成null

This commit is contained in:
duan 2025-04-07 15:33:24 +08:00
parent b782394cc7
commit 82319bb3cc
1 changed files with 7 additions and 0 deletions

View File

@ -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<any, Responseres>({
url: `${baseURL}`,
method: "post",