|
@@ -161,9 +161,7 @@ export const request = (config) => {
|
|
|
showLoading()
|
|
showLoading()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 根据admin-web配置,基础API地址为后台服务地址
|
|
|
|
|
- // 请根据实际部署情况修改此地址
|
|
|
|
|
- const baseApi = 'https://cloud.yeswash.cn/admin' // admin-web的后台服务地址
|
|
|
|
|
|
|
+ const baseApi = import.meta.env.VITE_BASE_API || 'https://cloud.yeswash.cn/admin'
|
|
|
|
|
|
|
|
const fullUrl = `${baseApi}${url}`
|
|
const fullUrl = `${baseApi}${url}`
|
|
|
console.log(`发起${method}请求:`, fullUrl)
|
|
console.log(`发起${method}请求:`, fullUrl)
|