梁展鹏 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);
     },
     submitUpload() {
-      if (this.imgList == 0) {
+      if (this.imgList.length == 0) {
         this.$error('未选择图片,请先选择图片');
         return false;
       }