Browse Source

增加请求头

master
Loki 3 years ago
parent
commit
00824c5a0f
  1. 1
      .gitignore
  2. 13
      .hbuilderx/launch.json
  3. 2
      config/index.js
  4. 1
      utils/request.js

1
.gitignore vendored

@ -14,3 +14,4 @@ yarn-error.log*
unpackage/
assets/css/style.css
assets/css/style.css.map
.hbuilderx

13
.hbuilderx/launch.json

@ -2,10 +2,15 @@
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"type": "uniCloud",
"default": {
"launchtype": "remote"
}
"default" :
{
"launchtype" : "remote"
},
"mp-weixin" :
{
"launchtype" : "remote"
},
"type" : "uniCloud"
}
]
}

2
config/index.js

@ -1,7 +1,7 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://139.186.134.205:9006/api'
export const VUE_APP_API_URL = 'http://192.168.0.114:8098/api'
export const VUE_APP_API_URL = 'http://192.168.0.110:8098/api'
// export const VUE_APP_API_URL = 'https://www.cyjyyjy.com:8096/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

1
utils/request.js

@ -62,6 +62,7 @@ function baseRequest(options) {
// 如果接口需要登录,携带 token 去请求
options.headers = {
version: "2.0",
...options.headers,
}

Loading…
Cancel
Save