diff --git a/pages/article/post/_article_id.vue b/pages/article/post/_article_id.vue index b027a39..9af21bf 100644 --- a/pages/article/post/_article_id.vue +++ b/pages/article/post/_article_id.vue @@ -269,6 +269,7 @@ localStorage.removeItem('article-title'); localStorage.removeItem('article-tags'); _ts.contentEditor.setValue(''); + _ts.$store.commit('article/clearDetailData') _ts.$router.push({ path: `/article/${res.id}` })