|
@@ -4,9 +4,9 @@ module.exports = (vm) => {
|
|
|
// 初始化请求配置
|
|
|
uni.$u.http.setConfig((config) => {
|
|
|
/* config 为默认全局配置*/
|
|
|
- config.baseURL = 'http://192.168.2.117/qpls-md'; /* 开发 */
|
|
|
+ // config.baseURL = 'http://192.168.2.117/qpls-md'; /* 开发 */
|
|
|
// config.baseURL = 'https://iscm.360arrow.com/qpls-md'; /* 生产 */
|
|
|
- // config.baseURL = 'https://p.iscm.360arrow.com/qpls-md'; /* 预发布 */
|
|
|
+ config.baseURL = 'https://p.iscm.360arrow.com/qpls-md'; /* 预发布 */
|
|
|
config.custom.auth = true
|
|
|
return config
|
|
|
})
|
|
@@ -20,7 +20,7 @@ module.exports = (vm) => {
|
|
|
// 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
|
|
|
config.header['access-token'] = vm.$store.state.vuex_token
|
|
|
}
|
|
|
- // config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
|
|
|
+ config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
|
|
|
return config
|
|
|
}, config => { // 可使用async await 做异步操作
|
|
|
return Promise.reject(config)
|