梁展鹏 hace 3 años
padre
commit
3b1c86f145
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
       }