zhaoke 3 年之前
父节点
当前提交
ff84cdfeba
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/App.vue

+ 2 - 2
src/App.vue

@@ -15,11 +15,11 @@
         <div class="content">
           <el-form @submit.native.prevent ref="form" :rules="rules" :model="form">
             <el-form-item prop="pwd">
-              <el-input show-password placeholder="请输入密码" tabindex="1" v-model="form.pwd"></el-input>
+              <el-input show-password placeholder="请输入密码" tabindex="1" @keyup.enter.native="onSubmit('form')" v-model="form.pwd"></el-input>
             </el-form-item>
             <div v-if="Number(errorNum) >= 3" class="flex-wrap">
               <el-form-item class="flex1" prop="identify">
-                <el-input ref="identify" v-model.trim="form.identify" placeholder="请输入验证码" name="identify" tabindex="1" />
+                <el-input ref="identify" v-model.trim="form.identify" @keyup.enter.native="onSubmit('form')" placeholder="请输入验证码" name="identify" tabindex="1" />
               </el-form-item>
               <Identify @changeCode="changeCode" :identifyCode="form.CheckCode" :contentHeight="48" style="margin-left: 24px;" />
             </div>