Skip to content

Commit 4f3998a

Browse files
committed
删除async说明
1 parent a18881b commit 4f3998a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ yarn-error.log
1010
*.njsproj
1111
*.sln
1212
server/upload
13+
vue-http-rexsheng*

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ index.html
1313
package-lock.json
1414
webpack.config.js
1515
LICENSE
16+
latest
17+
vue-http-rexsheng*

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
## Build Setup
66

77
``` bash
8-
# install plugin
8+
# 页面直接引用(放在vue.js引用之后)
9+
<script src="https://rexsheng.github.io/vue-http-rexsheng/latest/http.js"></script>
10+
11+
# npm安装
912
npm install vue-http-rexsheng --save-dev
1013

1114
# config in entry file like 'src/main.js'
@@ -120,7 +123,7 @@ this.$ajax.send(option)
120123
|type |类型 |`get` `post` `delete` `put`|
121124
|url |请求地址 | 必填 |
122125
|baseUrl |请求地址的前缀 | `boolean` `string` 设置为`false`时,不使用全局配置url:Vue.ajax.config.baseUrl;设置为字符串时,优先级高于全局配置 |
123-
|async |是否异步请求 | 默认`true` |
126+
|~~async~~ |~~是否异步请求~~ | ~~默认`true`~~ |
124127
|headers |请求headers对象 | 例如`{"Content-type":"application/json;charset=UTF-8"}` |
125128
|timeout |超时时间毫秒 | 毫秒数 |
126129
|withCredentials |跨域响应设置cookie |默认`false` |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-http-rexsheng",
33
"description": "A Vue.js plugin for providing http request",
4-
"version": "1.1.11",
4+
"version": "1.1.13",
55
"author": "Rex Sheng <shengxupeng@126.com>",
66
"license": "MIT",
77
"private": false,

0 commit comments

Comments
 (0)