diff --git a/src/views/examples/table/post/api.js b/src/views/examples/table/post/api.js index 42fa0b6..9416f24 100644 --- a/src/views/examples/table/post/api.js +++ b/src/views/examples/table/post/api.js @@ -1,7 +1,7 @@ import request from '@/utils/http' export default { - getPosts: (params = {}) => request.get('posts', params), + getPosts: (params = {}) => request.get('posts', { params }), getPostById: (id) => request.get(`/post/${id}`), savePost: (id, data = {}) => { if (id) {