feat: Add response code 400.
fix: Change the parameter naming of the get method to params.
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user