Browse Source

修改长度限制

lex 1 year ago
parent
commit
04baaef1c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/MImgCode.vue

+ 1 - 1
src/components/MImgCode.vue

@@ -4,7 +4,7 @@
       <p class="codeTitle">输入图形验证码</p>
       <van-row type="flex">
         <van-col span="14">
-          <van-field placeholder="请输入验证码" v-model="code" style="background: #f4f4f4; padding: 0.12rem 0.16rem" />
+          <van-field placeholder="请输入验证码" v-model="code" style="background: #f4f4f4; padding: 0.12rem 0.16rem" :maxlength="4" autocomplete="off" />
         </van-col>
         <van-col span="10" class="img">
           <van-image :src="identifyingCode" @click="updateIdentifyingCode(true)">