feat: 继续完成文章编辑器中
This commit is contained in:
1 parent
caadd5a484
commit
31e253eaef
5 files changed
+90
-9
No files matched your search
@@ -37,8 +37,11 @@ export default function useFetch() {
|
||||
'Authorization': `Bearer ${userStore.token}`
|
||||
}
|
||||
}),
|
||||
getPost: (id: number) => $fetch(`/api/posts/getPost?id=${id}`, {
|
||||
method: 'GET',
|
||||
getPost: (id: number) => $fetch(`/api/posts/getPostContent`, {
|
||||
method: 'post',
|
||||
body: {
|
||||
id
|
||||
},
|
||||
headers: {
|
||||
'Authorization': `Bearer ${userStore.token}`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user