bug修改
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
>
|
||||
<a-input
|
||||
type="text"
|
||||
v-decorator="['username',{ rules: validatorRules.username.rules}]"
|
||||
v-decorator="['username',validatorRules.username]"
|
||||
placeholder="请输入用户名">
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -35,7 +35,7 @@
|
||||
>
|
||||
<a-input
|
||||
type="text"
|
||||
v-decorator="['phone',{ rules: validatorRules.phone.rules}]"
|
||||
v-decorator="['phone',validatorRules.phone]"
|
||||
placeholder="请输入手机号">
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -50,7 +50,7 @@
|
||||
:labelCol="{span: 5}"
|
||||
:wrapperCol="{span: 19}">
|
||||
<a-input
|
||||
v-decorator="['verifyCode', { rules: validatorRules.verifyCode.rules}]"
|
||||
v-decorator="['verifyCode', validatorRules.verifyCode]"
|
||||
type="text"
|
||||
placeholder="请输入验证码">
|
||||
</a-input>
|
||||
@@ -72,7 +72,7 @@
|
||||
:wrapperCol="{span: 19}">
|
||||
<a-input
|
||||
placeholder="请输入新密码"
|
||||
v-decorator="['password', { rules: validatorRules.password.rules}]"
|
||||
v-decorator="['password', validatorRules.password]"
|
||||
@paste.native.capture.prevent="handleOperate"
|
||||
autocomplete="new-password"
|
||||
type="password">
|
||||
@@ -89,7 +89,7 @@
|
||||
:wrapperCol="{span: 19}">
|
||||
<a-input
|
||||
placeholder="请输入确认密码"
|
||||
v-decorator="['confirmPassword', { rules: validatorRules.confirmPassword.rules}]"
|
||||
v-decorator="['confirmPassword', validatorRules.confirmPassword]"
|
||||
type="password"
|
||||
@paste.native.capture.prevent="handleOperate"
|
||||
autocomplete="new-password">
|
||||
@@ -134,7 +134,9 @@ export default {
|
||||
},
|
||||
phone: {
|
||||
rules: [
|
||||
{ required: true, message: '请输入手机号码!' }, { validator: this.validatePhone }],
|
||||
{ required: true, message: '请输入手机号码!' },
|
||||
{ validator: this.validatePhone }
|
||||
],
|
||||
validateTrigger: 'blur'
|
||||
},
|
||||
verifyCode: {
|
||||
@@ -242,7 +244,7 @@ export default {
|
||||
if (!err) {
|
||||
const hide = this.$message.loading('验证码发送中..', 0)
|
||||
let smsParams = {
|
||||
phone: phone,
|
||||
phone: phone
|
||||
}
|
||||
getAction('/sys/sendVerificationCode', smsParams).then(res => {
|
||||
if (!res.success) {
|
||||
@@ -279,7 +281,7 @@ export default {
|
||||
// 密码禁止粘贴
|
||||
handleOperate() {
|
||||
return false
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user