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