wenhongquan 3 years ago
parent
commit
f162705fb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/Warehouse/index.vue

+ 1 - 1
src/views/Warehouse/index.vue

@@ -241,7 +241,7 @@ const dosavedata = () => {
   var data = whdata.value;
   data['resourceDetailList'] = cloneDeep( wzdata.aar);
   data['resourceDetailList'].map(item=>{
-    if((item.pic ?? []).length>0){
+    if(item.pic && (item.pic ?? []).length>0){
       if(item.pic[0].url == undefined || item.pic[0].url==null){
          item.pic = item.pic[0].file.purl;
       }else{