添加登录手机号校验

pull/15/head
李飞 2 years ago
parent 378d660823
commit ac7df467f4
  1. 2
      src/views/login/index.vue

@ -14,6 +14,8 @@
<el-input <el-input
v-model="loginForm.username" v-model="loginForm.username"
placeholder="请输入用户名" placeholder="请输入用户名"
oninput="if(value.length>11)value=value.slice(0,11)" type="Number" onkeyup="this.value = this.value.replace(/[^\d]/g,'');"
> >
<img <img
slot="prefix" slot="prefix"

Loading…
Cancel
Save