Browse Source

Post请求修改

xinfeng 6 years ago
parent
commit
58cc337d8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mixins/uploadFile.js

+ 1 - 1
mixins/uploadFile.js

@@ -38,7 +38,7 @@ export default {
         console.log('key1', 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" }
       }).then(res=>{
         this.returnData = res.data