commit
3e54a82abb
@ -1,7 +1,7 @@
|
|||||||
import request from '@/utils/http'
|
import request from '@/utils/http'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getPosts: (params = {}) => request.get('posts', params),
|
getPosts: (params = {}) => request.get('posts', { params }),
|
||||||
getPostById: (id) => request.get(`/post/${id}`),
|
getPostById: (id) => request.get(`/post/${id}`),
|
||||||
savePost: (id, data = {}) => {
|
savePost: (id, data = {}) => {
|
||||||
if (id) {
|
if (id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user