From c62a61cfdba5cf60f59e7e79432150e479155da4 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期一, 31 八月 2026 09:01:12 +0800
Subject: [PATCH] feat: 关闭标签页/浏览器后强制重新登录——认证信息(token/username/realName/modules)改存 sessionStorage,目录记忆/备注草稿等偏好仍存 localStorage

---
 traffic-audit-web/src/components/Captcha3D.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic-audit-web/src/components/Captcha3D.vue b/traffic-audit-web/src/components/Captcha3D.vue
index 0264cc7..d710b33 100644
--- a/traffic-audit-web/src/components/Captcha3D.vue
+++ b/traffic-audit-web/src/components/Captcha3D.vue
@@ -119,7 +119,7 @@
       this.selectedIds = []
       this.errorMsg = ''
       this.$emit('reset')
-      axios.get('/api/auth/captcha')
+      axios.get('/api/auth/captcha', { timeout: 10000 })
         .then(res => {
           this.loading = false
           if (res.data.code === 200) {
@@ -176,7 +176,7 @@
       axios.post('/api/auth/captcha/verify', {
         captchaId: this.challenge.captchaId,
         captchaClickIds: this.selectedIds.slice()
-      })
+      }, { timeout: 10000 })
         .then(res => {
           this.loading = false
           const d = res.data

--
Gitblit v1.9.1