Update post-form.vue

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-07-21 02:14:24 +09:00 committed by GitHub
parent c2ce9a72e9
commit 8f4730a12d

View file

@ -45,7 +45,7 @@ export default define({
this.save();
},
onKeydown(e) {
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && !this.posting && this.text) this.post();
},
post() {
this.posting = true;