bruce 5 лет назад
Родитель
Сommit
f67746b397
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      components/multi-uploader.vue

+ 2 - 2
components/multi-uploader.vue

@@ -47,7 +47,7 @@
     methods: {
       beforeUpload(file) {
         console.log("beforeUpload", file);
-        console.log("before", this.$refs.multi_uploade);
+        console.log("before", this.$refs.multiUploade);
         if (file.type !== "image/png" || file.type !== "image/jpg" || file.type !== "image/jpeg" || file.type !== "image/gif") {
           this.$message.error("文件类型不正确");
           this.$refs.multiUploade.abort(file);
@@ -67,7 +67,7 @@
           console.log("上传成功");
           this.handleChange(fileList)
         } else {
-          this.$refs.multi_uploade.abort(file);
+          this.$refs.multiUploade.abort(file);
           console.log("上传失败 abort");
         }
       },