mirror of https://gitee.com/xiaonuobase/snowy
【优化】该改动影响打包后使用,暂先不用代理
parent
1a6d5e97c9
commit
38a470d40a
|
@ -151,6 +151,7 @@ service.interceptors.response.use(
|
||||||
|
|
||||||
// 适配器, 用于适配不同的请求方式
|
// 适配器, 用于适配不同的请求方式
|
||||||
export const baseRequest = (url, value = {}, method = 'post', options = {}) => {
|
export const baseRequest = (url, value = {}, method = 'post', options = {}) => {
|
||||||
|
url = sysConfig.API_URL + url
|
||||||
if (method === 'post') {
|
if (method === 'post') {
|
||||||
return service.post(url, value, options)
|
return service.post(url, value, options)
|
||||||
} else if (method === 'get') {
|
} else if (method === 'get') {
|
||||||
|
|
Loading…
Reference in New Issue