fix: 环境

master
张林 2024-07-02 14:49:36 +08:00
parent 9816790316
commit ab854f6499
1 changed files with 3 additions and 2 deletions

View File

@ -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')