Skip to content

Commit be4356f

Browse files
committed
refactor: 行为验证码重复问题
1 parent 930227e commit be4356f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/Verify/Verify/VerifySlide.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export default {
345345
346346
function init() {
347347
text.value = explain.value
348-
getPicture()
348+
// getPicture()
349349
nextTick(() => {
350350
const { imgHeight, imgWidth, barHeight, barWidth } = resetSize(proxy)
351351
setSize.imgHeight = imgHeight

src/views/login/components/phone/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ const onCaptcha = async () => {
9595
if (captchaLoading.value) return
9696
const isInvalid = await formRef.value?.validateField('phone')
9797
if (isInvalid) return
98+
// 重置行为参数
99+
VerifyRef.value.instance.refresh()
98100
VerifyRef.value.show()
99101
}
100102

0 commit comments

Comments
 (0)