generated from duanshuwen/webapp-vue-frontend
feat: 更改请求代理地址
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user