File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ yarn-error.log
10
10
* .njsproj
11
11
* .sln
12
12
server /upload
13
+ vue-http-rexsheng *
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ index.html
13
13
package-lock.json
14
14
webpack.config.js
15
15
LICENSE
16
+ latest
17
+ vue-http-rexsheng *
Original file line number Diff line number Diff line change 5
5
## Build Setup
6
6
7
7
``` bash
8
- # install plugin
8
+ # 页面直接引用(放在vue.js引用之后)
9
+ < script src=" https://rexsheng.github.io/vue-http-rexsheng/latest/http.js" ></script>
10
+
11
+ # npm安装
9
12
npm install vue-http-rexsheng --save-dev
10
13
11
14
# config in entry file like 'src/main.js'
@@ -120,7 +123,7 @@ this.$ajax.send(option)
120
123
|type |类型 |`get` `post` `delete` `put`|
121
124
|url |请求地址 | 必填 |
122
125
|baseUrl |请求地址的前缀 | `boolean` `string` 设置为`false`时,不使用全局配置url:Vue.ajax.config.baseUrl;设置为字符串时,优先级高于全局配置 |
123
- |async |是否异步请求 | 默认`true` |
126
+ |~~ async~~ |~~ 是否异步请求~~ | ~~ 默认`true`~~ |
124
127
|headers |请求headers对象 | 例如`{"Content-type":"application/json;charset=UTF-8 "}` |
125
128
|timeout |超时时间毫秒 | 毫秒数 |
126
129
|withCredentials |跨域响应设置cookie |默认`false` |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-http-rexsheng" ,
3
3
"description" : " A Vue.js plugin for providing http request" ,
4
- "version" : " 1.1.11 " ,
4
+ "version" : " 1.1.13 " ,
5
5
"author" : " Rex Sheng <shengxupeng@126.com>" ,
6
6
"license" : " MIT" ,
7
7
"private" : false ,
You can’t perform that action at this time.
0 commit comments