初始化
This commit is contained in:
@@ -69,7 +69,7 @@ const fetchPosts = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const deletePost = async (id: string) => {
|
||||
const deletePost = async (id: number) => {
|
||||
if (confirm('确定要删除这篇文章吗?')) {
|
||||
try {
|
||||
await deletePostApi(id)
|
||||
|
||||
Reference in New Issue
Block a user