lrf 2 năm trước cách đây
mục cha
commit
8245361b1d
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      pages/market/index.vue

+ 4 - 2
pages/market/index.vue

@@ -275,7 +275,7 @@ export default {
             value.num = total;
           }
         }
-      // 计算总额
+        // 计算总额
         that.countMoney();
       })
     },
@@ -329,7 +329,9 @@ export default {
       })
     },
     getFile(data) {
-      return data?.file[0]?.url;
+      const file = data.file;
+      if (!file) return '';
+      if (file.length && file.length > 0) return file[0].url
     },
     // 去结算
     toSettle() { },