Skip to content

Commit f2a3bd7

Browse files
committed
feat: update README
1 parent 3f29402 commit f2a3bd7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Except axios default [request options](https://github.com/axios/axios#request-co
5252

5353
## Usage
5454

55-
default method in `$http`, it just contains get and post method:
55+
Default method in `$http`, it just contains get and post method:
5656

5757
```javascript
5858
this.$http.get(url, data, options).then((response) => {
@@ -63,7 +63,7 @@ this.$http.post(url, data, options).then((response) => {
6363
})
6464
```
6565

66-
use axios original method in `$axios`, by this, you can use all allowed http methods: get,post,delete,put...
66+
Use axios original method in `$axios`, by this, you can use all allowed http methods: get,post,delete,put...
6767

6868
```javascript
6969
this.$axios.get(url, data, options).then((response) => {
@@ -75,6 +75,14 @@ this.$axios.post(url, data, options).then((response) => {
7575
})
7676
```
7777

78+
## ChangeLog for v1.3.0
79+
80+
Before v1.3.0, it send a request use `application/x-www-form-urlencoded` format by default, so it config `transformRequest` for post request by default, but it is unreasonable. So in v1.3.0, I remove it, all configuration depends on yourself, so you can config the `Content-Type` and `transformRequest` depend on your backend service.
81+
82+
## TODO
83+
84+
- [] Unit test.
85+
7886
## Notice!!!
7987

8088
When you send a request use `application/x-www-form-urlencoded` format, you need to use [qs]() library to transform post data, like below:

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ import axios from 'axios/dist/axios'
99

1010
let VueAxiosPlugin = {}
1111

12-
/**
13-
* options.checkStatus: default uniform handler for get/post method
14-
*/
1512
VueAxiosPlugin.install = (Vue, options) => {
1613
const defaultOptions = {
1714
// request interceptor handler

0 commit comments

Comments
 (0)