初始化

This commit is contained in:
李琦
2026-01-15 17:03:59 +08:00
parent 3ddd977299
commit df10ec9678
8 changed files with 188 additions and 66 deletions

View File

@@ -69,7 +69,7 @@ const fetchPosts = async () => {
}
}
const deletePost = async (id: string) => {
const deletePost = async (id: number) => {
if (confirm('确定要删除这篇文章吗?')) {
try {
await deletePostApi(id)