feat: proGroupVo Images 修改这两个字段为空数组时改成null
This commit is contained in:
parent
b782394cc7
commit
82319bb3cc
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue