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
1010* .njsproj
1111* .sln
1212server /upload
13+ vue-http-rexsheng *
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ index.html
1313package-lock.json
1414webpack.config.js
1515LICENSE
16+ latest
17+ vue-http-rexsheng *
Original file line number Diff line number Diff line change 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安装
912npm 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` |
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments