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 }