diff --git a/components/user/postEditor.vue b/components/user/postEditor.vue
new file mode 100644
index 0000000..830fc57
--- /dev/null
+++ b/components/user/postEditor.vue
@@ -0,0 +1,31 @@
+
+
+ editor以后再写
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hooks/useMiaoFetch.ts b/hooks/useMiaoFetch.ts
index 7c6b792..3d4514e 100644
--- a/hooks/useMiaoFetch.ts
+++ b/hooks/useMiaoFetch.ts
@@ -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}`
}
diff --git a/pages/user/main.vue b/pages/user/main.vue
index 90fc02f..78b19d3 100644
--- a/pages/user/main.vue
+++ b/pages/user/main.vue
@@ -2,8 +2,8 @@