添加博客成功自动重置表单

This commit is contained in:
2025-05-18 16:04:30 +08:00
parent 47eba8d35e
commit ee428957bd

View File

@@ -37,6 +37,11 @@ export default function AddBlog({ children, onRefresh }: AddBlogProps) {
setOpen(false);
onRefresh();
toast.success("添加成功");
setBlog({
title: '',
description: '',
contentUrl: '',
})
} else {
throw new Error();
}