From 37496dcec47bc98dc545d94287f39b33eb181bca Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 17:36:48 +0800
Subject: [PATCH] docs: 关机交接——菜单布局修复(2bd663b)与实测结论、/import 主线程卡死新发现、sessionStorage 强制登录待办
---
traffic-audit-web/src/views/Login.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/traffic-audit-web/src/views/Login.vue b/traffic-audit-web/src/views/Login.vue
index 2227171..f7dc1a7 100644
--- a/traffic-audit-web/src/views/Login.vue
+++ b/traffic-audit-web/src/views/Login.vue
@@ -44,7 +44,7 @@
}
},
created() {
- axios.get('/api/auth/captcha-config')
+ axios.get('/api/auth/captcha-config', { timeout: 10000 })
.then(res => {
const d = res.data
if (d && d.code === 200) this.captchaRequired = d.data.required !== false
@@ -75,7 +75,7 @@
password: this.form.password,
captchaId: this.captchaId,
captchaClickIds: this.clickIds
- }).then(res => {
+ }, { timeout: 15000 }).then(res => {
this.loggingIn = false
const d = res.data
if (d.code === 200) {
@@ -95,8 +95,9 @@
this.$message.error(d.message || '鐧诲綍澶辫触锛岃閲嶈瘯')
if (this.$refs.captcha) this.$refs.captcha.load()
}
- }).catch(() => {
+ }).catch(e => {
this.loggingIn = false
+ if (e && e.code === 'ECONNABORTED') { this.$message.error('鐧诲綍璇锋眰瓒呮椂锛岃閲嶈瘯'); return }
this.$message.error('缃戠粶閿欒锛岀櫥褰曞け璐�')
})
})
--
Gitblit v1.9.1