1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 08:48:11 +09:00

Update post-form.vue

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-07-21 02:14:24 +09:00 committed by GitHub
parent ae68e6372c
commit 9bb02e5bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ export default define({
this.save(); this.save();
}, },
onKeydown(e) { 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() { post() {
this.posting = true; this.posting = true;