fix: 环境
parent
9816790316
commit
ab854f6499
5
main.js
5
main.js
|
|
@ -7,13 +7,14 @@ import { $http } from '@escook/request-miniprogram'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
uni.$http = $http
|
uni.$http = $http
|
||||||
$http.baseUrl = 'http://local.gunshiiot.com:18083'
|
// $http.baseUrl = 'http://local.gunshiiot.com:18083'
|
||||||
|
$http.baseUrl = 'http://36.139.207.50:18083'
|
||||||
// 请求拦截器
|
// 请求拦截器
|
||||||
$http.beforeRequest = function (options) {
|
$http.beforeRequest = function (options) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '数据加载中'
|
title: '数据加载中'
|
||||||
})
|
})
|
||||||
|
|
||||||
if (options.url.indexOf('/doLogin') == -1) {
|
if (options.url.indexOf('/doLogin') == -1) {
|
||||||
options.header = {
|
options.header = {
|
||||||
'gs-token': uni.getStorageSync('Gs-Token')
|
'gs-token': uni.getStorageSync('Gs-Token')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue