web: just reload home path after create post success

pull/176/head
Michael Li 2 years ago
parent 41618dba8f
commit e1bd4a9411

@ -84,12 +84,9 @@ const loadPosts = () => {
};
const onPostSuccess = (post: Item.PostProps) => {
router.push({
name: 'post',
query: {
id: post.id,
},
});
setTimeout(() => {
loadPosts();
}, 50);
};
const updatePage = (p: number) => {

Loading…
Cancel
Save