Commit 95bed629bdf6794b0d3ec04d81e333ffb29064f2

Authored by loveumiko
1 parent 377551ae

fix: 产品编辑时,对产品图片进行修改或删除时,无法点击确认按钮

... ... @@ -203,7 +203,10 @@
203 203 await getDeviceConfFormData();
204 204 await getTransConfData();
205 205 const isEmptyObj = isEmpty(transportConfData.profileData.transportConfiguration);
206   - if (Reflect.has(postSubmitFormData.deviceConfData, 'deleteUrl') && values.deleteUrl.deleteUrl) {
  206 + if (
  207 + Reflect.has(postSubmitFormData.deviceConfData, 'deleteUrl') &&
  208 + postSubmitFormData.deviceConfData?.deleteUrl
  209 + ) {
207 210 await deleteFilePath(postSubmitFormData.deviceConfData?.deleteUrl);
208 211 Reflect.deleteProperty(postSubmitFormData.deviceConfData, 'deleteUrl');
209 212 }
... ...