From 0ec79479273011796d932a9c6b3de7807da92a21 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Thu, 25 Jun 2026 14:31:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AD=94=E7=BD=91=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5=E6=94=B9=E4=B8=BA=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=8F=90=E7=A4=BA=E5=AF=B9=E5=BA=94=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 5350d4a..0328e49 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -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 {