修复问题

This commit is contained in:
zpc 2025-04-24 01:58:45 +08:00
parent 21891df4cc
commit 5b5885c819

View File

@ -193,14 +193,14 @@ export default {
if (res.status == 1) {
uni.showToast({
title: '验证码已发送',
icon: 'success'
icon: 'none'
});
//
this.codeSent = true;
//
this.countdown = 60;
// 使
this.countdown = res.data || 60; // 使60
this.timer = setInterval(() => {
this.countdown--;
if (this.countdown <= 0) {
@ -326,13 +326,10 @@ export default {
// URL
setTimeout(() => {
that.$customRouter.routerTo({
url: redirectUrl,
type: 'navigateTo'
}).catch(err => {
that.$customRouter.navigateTo(redirectUrl).catch(err => {
console.error('重定向跳转失败:', err)
//
that.$customRouter.navigateTo('/pages/user/index', {}, 'navigateTo')
that.$customRouter.navigateTo('/pages/user/index')
})
}, 1000);