diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag index bc99e0c0a287ade0f7b2421310619ffa1021d88c..983d35405a2dd02286e7f19ede51f4749c05a400 100644 --- a/src/web/app/desktop/tags/post-form.tag +++ b/src/web/app/desktop/tags/post-form.tag @@ -338,6 +338,7 @@ if (draft) { draft = JSON.parse(draft); this.refs.text.value = draft.text; + this.update(); } }); @@ -352,6 +353,7 @@ this.clear = () => { this.refs.text.value = ''; this.files = []; + this.poll = false; this.trigger('change-files'); this.update(); }; @@ -452,8 +454,9 @@ reply_to_id: this.inReplyToPost ? this.inReplyToPost.id : undefined, poll: this.poll ? this.refs.poll.get() : undefined }).then(data => { - localStorage.removeItem('post-draft'); + this.clear(); this.trigger('post'); + localStorage.removeItem('post-draft'); this.notify(this.inReplyToPost ? '返信ã—ã¾ã—ãŸï¼' : '投稿ã—ã¾ã—ãŸï¼'); }).catch(err => { this.notify('投稿ã§ãã¾ã›ã‚“ã§ã—ãŸ');