xinfeng 6 роки тому
батько
коміт
58cc337d8f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      mixins/uploadFile.js

+ 1 - 1
mixins/uploadFile.js

@@ -38,7 +38,7 @@ export default {
         console.log('key1', key)
         console.log('key1', key)
         formData.append(key, this.uploadInfo[key])
         formData.append(key, this.uploadInfo[key])
       }
       }
-      this.$axios.$post(this.options.server, formData, {
+      this.$axios.post(this.options.server, formData, {
         headers: { "Content-Type": "multipart/form-data" }
         headers: { "Content-Type": "multipart/form-data" }
       }).then(res=>{
       }).then(res=>{
         this.returnData = res.data
         this.returnData = res.data