提交 8f7fbc1a 编写于 作者: 江南一点雨

优化前端封装的请求api

上级 1f811cef
......@@ -66,13 +66,13 @@ export const getRequest = (url, params) => {
return axios({
method: 'get',
url: `${base}${url}`,
data: params
params: params
})
}
export const deleteRequest = (url, params) => {
return axios({
method: 'delete',
url: `${base}${url}`,
data: params
params: params
})
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册