|
@@ -2,7 +2,7 @@ import {
|
|
|
$http
|
|
|
} from '@escook/request-miniprogram'
|
|
|
|
|
|
-$http.baseUrl = "http://192.168.0.40:8081"
|
|
|
+// $http.baseUrl = "http://192.168.0.40:8081"
|
|
|
|
|
|
uni.$http = $http
|
|
|
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
removeAll
|
|
|
} from "./auth.js"
|
|
|
|
|
|
-// const baseUrl = window.location.origin
|
|
|
+const baseUrl = window.location.origin
|
|
|
|
|
|
-// $http.baseUrl = baseUrl
|
|
|
+$http.baseUrl = baseUrl
|
|
|
|
|
|
// 请求拦截器
|
|
|
$http.beforeRequest = function(options) {
|