Zt 1 рік тому
батько
коміт
165f15c18d
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      reado-app/utils/request.js

+ 3 - 3
reado-app/utils/request.js

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