|
|
@@ -36,14 +36,14 @@
|
|
|
</a-input-password>
|
|
|
</a-form-item>
|
|
|
|
|
|
- <!-- <a-form-item field="email" hide-label :rules="[{ type: 'email', required: true, message: '请填写正确的邮箱地址' }]"
|
|
|
+ <a-form-item field="email" hide-label :rules="[{ type: 'email', required: true, message: '请填写正确的邮箱地址' }]"
|
|
|
:validate-trigger="['change']">
|
|
|
<a-input placeholder="请输入邮箱" allow-clear v-model="form.email">
|
|
|
<template #prefix>
|
|
|
<icon-email />
|
|
|
</template>
|
|
|
</a-input>
|
|
|
- </a-form-item> -->
|
|
|
+ </a-form-item>
|
|
|
|
|
|
<a-form-item field="captcha" hide-label :rules="[{ length: 4, required: true, message: '请正确填写图片验证码' }]">
|
|
|
<a-input placeholder="请输入图片验证码" allow-clear v-model="form.captcha">
|
|
|
@@ -58,7 +58,7 @@
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
|
|
|
- <!-- <a-form-item field="code" hide-label :rules="[{ length: 6, required: true, message: '请正确填写邮箱验证码' }]">
|
|
|
+ <a-form-item field="code" hide-label :rules="[{ length: 6, required: true, message: '请正确填写邮箱验证码' }]">
|
|
|
<a-input placeholder="请输入邮箱验证码" allow-clear v-model="form.code">
|
|
|
<template #prefix>
|
|
|
<icon-code-square />
|
|
|
@@ -70,7 +70,7 @@
|
|
|
</a-button>
|
|
|
</template>
|
|
|
</a-input>
|
|
|
- </a-form-item> -->
|
|
|
+ </a-form-item>
|
|
|
|
|
|
<a-button type="text" class="forgetpass" @click="emit('changeMode', 'login')">已有账号,去登录</a-button>
|
|
|
|
|
|
@@ -193,6 +193,7 @@ const handleSubmit = async ({ values, errors }) => {
|
|
|
}
|
|
|
|
|
|
const requestFailed = (msg) => {
|
|
|
+ getCaptcha()
|
|
|
Notification.error({
|
|
|
title: '错误',
|
|
|
content: msg || '请求出现错误,请稍后再试',
|