错误5次以上需要重新获取验证码

This commit is contained in:
范露尧
2023-07-12 16:43:15 +08:00
parent 0e0db16ed1
commit 39c2f98a09
2 changed files with 18 additions and 1 deletions

View File

@@ -279,7 +279,7 @@
<script type="text/javascript">
const { createApp, onMounted, watch, computed, ref } = Vue
const { ElMessageBox, ElNotification, ElLoading } = ElementPlus;
const { ElMessageBox, ElNotification, ElLoading, ElMessage } = ElementPlus;
const app = createApp({
setup() {
@@ -414,6 +414,11 @@
},
verifyKey: async (pageData) => {
if (pageData.loginForm?.phone?.length != 11 || pageData.loginForm?.code?.length != 4) {
//ElMessage.error('请将内容输入完整后再次点击登录!')
ElMessage({
message: '请将内容输入完整后再次点击登录!',
type: 'warning',
})
return;
}
try {