From a26d11ce62b95db4f8dd668faf8adc3c0ad9399f Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 17:11:54 +0800
Subject: [PATCH] docs: 超时保护完成记录 + 用户反驳线程池假设(3用户场景),根因改为待 access log 取证

---
 traffic-audit-web/src/views/RuleManage.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/traffic-audit-web/src/views/RuleManage.vue b/traffic-audit-web/src/views/RuleManage.vue
index 30d2f57..e39ff03 100644
--- a/traffic-audit-web/src/views/RuleManage.vue
+++ b/traffic-audit-web/src/views/RuleManage.vue
@@ -91,19 +91,19 @@
       this.loading = true
       api.get('/rules/list', { params: { reportType: this.reportType } })
         .then(res => { this.rules = res.data || [] })
-        .catch(() => { this.$message.error('瑙勫垯鍔犺浇澶辫触') })
+        .catch(e => { if (e && e._toast) return; this.$message.error('瑙勫垯鍔犺浇澶辫触') })
         .finally(() => { this.loading = false })
     },
     toggleRule(row) {
       api.post('/rules/toggle', null, { params: { id: row.id, enabled: row.isEnabled } })
         .then(() => { this.$message.success((row.isEnabled ? '宸插惎鐢細' : '宸插仠鐢細') + row.ruleCode) })
-        .catch(() => { row.isEnabled = row.isEnabled ? 0 : 1; this.$message.error('鎿嶄綔澶辫触') })
+        .catch(e => { if (e && e._toast) return; row.isEnabled = row.isEnabled ? 0 : 1; this.$message.error('鎿嶄綔澶辫触') })
     },
     saveThreshold(row) {
       api.post('/rules/update', {
         id: row.id, threshold: row.threshold, alertLevel: row.alertLevel
       }).then(() => { this.$message.success('宸蹭繚瀛橈細' + row.ruleCode) })
-        .catch(() => { this.$message.error('淇濆瓨澶辫触') })
+        .catch(e => { if (e && e._toast) return; this.$message.error('淇濆瓨澶辫触') })
     }
   },
   mounted() { this.loadRules() }

--
Gitblit v1.9.1