This commit is contained in:
2025-09-05 21:39:28 +08:00
parent 089c9f8494
commit 913c2ba036
4 changed files with 99 additions and 280 deletions
+5 -19
View File
@@ -194,28 +194,14 @@ export default {
}
const checkLogin = () => {
// 检查登录状态
// 检查登录状态(仅用于显示,不强制跳转)
console.log('Profile页面登录状态检查')
// 检查是否需要继续未完成的登录流程
const nextPage = checkAndResumeLogin()
if (nextPage) {
console.log('检测到未完成的登录流程,跳转到:', nextPage)
const currentStep = getCurrentLoginStep()
console.log('当前登录步骤:', currentStep)
// 显示提示信息
uni.showToast({
title: '继续完成登录流程',
icon: 'none',
duration: 1500
})
setTimeout(() => {
uni.navigateTo({
url: nextPage
})
}, 1500)
return
}
// 不再自动跳转,让用户自主选择是否登录
// 登录状态会在调用需要鉴权的接口时自动处理
// 检查是否已完成登录
if (isLoginCompleted()) {