fix: list query issues
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import httpClient from './httpClient';
|
||||
|
||||
export const postService = {
|
||||
getPosts({ page = 1, limit = 10 } = {}) {
|
||||
getPosts({ page = 1, limit = 10, keyword = '' } = {}) {
|
||||
return httpClient.get('/admin/posts', {
|
||||
params: { page, limit }
|
||||
params: {
|
||||
page,
|
||||
limit,
|
||||
keyword: keyword.trim()
|
||||
}
|
||||
});
|
||||
},
|
||||
getPost(id) {
|
||||
|
||||
Reference in New Issue
Block a user