Browse Source

访问后端地址调整

wangtao 4 months ago
parent
commit
ba1acf108c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/utils/request.ts
  2. 1 1
      vite.config.ts

+ 1 - 1
src/utils/request.ts

@@ -1,7 +1,7 @@
 import axios, { InternalAxiosRequestConfig, AxiosResponse } from 'axios'
 import { tansParams } from './common.ts'
 // 创建axios实例
-var url = "http://192.168.10.165:13200/"
+var url = "http://121.41.4.166:13200/"
 // if (typeof window !== 'undefined'){
 //     if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("192.168.10.165") >-1){
 //         url = "http://192.168.10.165:13200/"

+ 1 - 1
vite.config.ts

@@ -31,7 +31,7 @@ export default defineConfig({
     port:3000,
     proxy:{
       "/prod-api":{
-        target:"http://172.16.120.165:13200/prod-api/",
+        target:"http://121.41.4.166:13200/prod-api/",
         rewrite:path=>path.replace(/^\/prod-api/,"")
       }
     }