梁展鹏 пре 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;
       }