diff --git a/main.js b/main.js index 85d5ee8..6b03a64 100644 --- a/main.js +++ b/main.js @@ -7,13 +7,14 @@ import { $http } from '@escook/request-miniprogram' Vue.config.productionTip = false 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) { uni.showLoading({ title: '数据加载中' }) - + if (options.url.indexOf('/doLogin') == -1) { options.header = { 'gs-token': uni.getStorageSync('Gs-Token')