Browse Source

本地局域网地址调整

wangtao 2 months ago
parent
commit
17e222e657
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/request.ts

+ 2 - 2
src/utils/request.ts

@@ -3,8 +3,8 @@ import { tansParams } from './common.ts'
 // 创建axios实例
 var url = "https://gateWay.usky.cn/"
 if (typeof window !== 'undefined'){
-    if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("172.16.120.165") >-1){
-        url = "http://172.16.120.165:13200/"
+    if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("192.168.10.165") >-1){
+        url = "http://192.168.10.165:13200/"
     }
     if(window.location.host.indexOf("usky.cn") > -1){
         url = "https://gateWay.usky.cn/"