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

This commit is contained in:
2025-05-18 16:04:30 +08:00
parent 8992963da8
commit cbd4ca5686

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();
}