Browse Source

Signed-off-by: Caner <5658514@qq.com>

Caner 3 years ago
parent
commit
c0ac7b66d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/login.vue

+ 1 - 1
src/components/login.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="login">
   <div class="login">
-    <div>
+    <div @keydown.enter="login">
       <div class="logo">登陆</div>
       <div class="logo">登陆</div>
       <input type="text" placeholder="房间" maxlength="20" v-model="roomID" />
       <input type="text" placeholder="房间" maxlength="20" v-model="roomID" />
       <input type="text" placeholder="昵称" maxlength="20" v-model="name" />
       <input type="text" placeholder="昵称" maxlength="20" v-model="name" />