梁展鹏 3 年之前
父節點
當前提交
3b1c86f145
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/MultUpload.vue

+ 1 - 1
src/components/MultUpload.vue

@@ -129,7 +129,7 @@ export default {
       this.imgList.push(fileList);
       this.imgList.push(fileList);
     },
     },
     submitUpload() {
     submitUpload() {
-      if (this.imgList == 0) {
+      if (this.imgList.length == 0) {
         this.$error('未选择图片,请先选择图片');
         this.$error('未选择图片,请先选择图片');
         return false;
         return false;
       }
       }