feat: 继续完成文章编辑器中

This commit is contained in:
539943419 committed 2025-01-14 21:59:10 +08:00
1 parent caadd5a484
commit 31e253eaef
5 files changed
+90 -9

No files matched your search

+5 -2
View File
@@ -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}`
}