feat: 更改请求代理地址

This commit is contained in:
zoujing
2026-04-02 16:52:31 +08:00
parent b2ca694fbd
commit 9436ff138e
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -74,7 +74,7 @@ export default defineConfig(({ mode }) => {
},
server: {
proxy: {
'/ingress/hotelBiz': {
'/ingress/agent': {
target: 'http://8.138.234.141',
changeOrigin: true
}