From 9436ff138ef98120b14dbed7f4c05de70e6d3af2 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 2 Apr 2026 16:52:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- src/common/ajax.js | 2 +- vite.config.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index 08a27f2..2b3e125 100644 --- a/.env.development +++ b/.env.development @@ -5,5 +5,5 @@ VITE_ENV = development VITE_CONSOLE = 1 # 接口地址 -VITE_BASE_API = http://8.138.234.141/ingress/hotelBiz +VITE_BASE_API = http://8.138.234.141/ingress/agent diff --git a/.env.production b/.env.production index 06508df..d1e0ae4 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VITE_ENV = production VITE_CONSOLE = 0 # 接口地址 -VITE_BASE_API = https://biz.nianxx.cn/hotelBiz +VITE_BASE_API = https://biz.nianxx.cn/agent diff --git a/.env.staging b/.env.staging index 4d34397..b058547 100644 --- a/.env.staging +++ b/.env.staging @@ -5,7 +5,7 @@ VITE_ENV = staging VITE_CONSOLE = 1 # 接口地址 -VITE_BASE_API = http://8.138.234.141/ingress/hotelBiz +VITE_BASE_API = http://8.138.234.141/ingress/agent diff --git a/src/common/ajax.js b/src/common/ajax.js index f10e48b..3c7e5a5 100644 --- a/src/common/ajax.js +++ b/src/common/ajax.js @@ -11,7 +11,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' // 创建axios对象 const instance = axios.create({ - baseURL: VITE_ENV === 'development' ? '/ingress/hotelBiz' : VITE_BASE_API, + baseURL: VITE_ENV === 'development' ? '/ingress/agent' : VITE_BASE_API, // 超时 timeout: 10000 }) diff --git a/vite.config.js b/vite.config.js index b357335..8ed67cf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -74,7 +74,7 @@ export default defineConfig(({ mode }) => { }, server: { proxy: { - '/ingress/hotelBiz': { + '/ingress/agent': { target: 'http://8.138.234.141', changeOrigin: true }