fix:孔网自动登录失败改为弹窗提示对应内容

This commit is contained in:
ShenQiLun 2026-06-25 14:31:21 +08:00
parent a1cb8512de
commit 0ec7947927

View File

@ -2951,13 +2951,16 @@ export default {
doSearch(loginRes.token, retryCount + 1)
} else {
console.warn('孔夫子-自动登录失败:', loginRes.message)
uni.showToast({ title: '孔网自动登录失败: ' + loginRes.message, icon: 'none', duration: 3000 })
resolve([{ total: 0, list: [] }, { newCount: 0, oldCount: 0, totalFound: 0 }, { newCount: 0, oldCount: 0, totalFound: 0 }])
}
}).catch(function() {
uni.showToast({ title: '孔网自动登录失败: 网络异常', icon: 'none', duration: 3000 })
resolve([{ total: 0, list: [] }, { newCount: 0, oldCount: 0, totalFound: 0 }, { newCount: 0, oldCount: 0, totalFound: 0 }])
})
} else {
console.warn('孔夫子-无已保存账号,无法自动登录')
uni.showToast({ title: '孔网会话过期,无已保存账号无法自动登录', icon: 'none', duration: 3000 })
resolve([{ total: 0, list: [] }, { newCount: 0, oldCount: 0, totalFound: 0 }, { newCount: 0, oldCount: 0, totalFound: 0 }])
}
} else {