feat: Add response code 400.

fix: Change the parameter naming of the get method to params.
This commit is contained in:
Sean Huang
2022-07-05 18:35:05 +08:00
parent 1da5e8d573
commit dff8862c75
3 changed files with 7 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
import { defAxios as request } from '@/utils/http'
export function getPosts(data = {}) {
export function getPosts(params = {}) {
return request({
url: '/posts',
method: 'get',
data,
params,
})
}