diff --git a/snowy-admin-web/src/utils/request.js b/snowy-admin-web/src/utils/request.js index 7546648f..291d387b 100644 --- a/snowy-admin-web/src/utils/request.js +++ b/snowy-admin-web/src/utils/request.js @@ -151,6 +151,7 @@ service.interceptors.response.use( // 适配器, 用于适配不同的请求方式 export const baseRequest = (url, value = {}, method = 'post', options = {}) => { + url = sysConfig.API_URL + url if (method === 'post') { return service.post(url, value, options) } else if (method === 'get') {