Merge pull request #176 from alimy/jc/alimy

web: just reload home path after create post success
pull/181/head
ROC 3 years ago committed by GitHub
commit a17ada63b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save