From 65af9b3a10c000b987b6be2fb6b4bed342d20195 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Wed, 9 Jul 2025 14:50:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(error):=20=E5=AE=9E=E7=8E=B0=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E7=BD=91=E7=BB=9C=E9=94=99=E8=AF=AF=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E5=92=8C=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增后端服务可用性检测功能,2秒超时检测 - 实现智能状态检测:用户有认证信息但访问404页面时自动检测 - 添加受保护路径识别逻辑(/system/、/management/、/tools/) - 后端服务不可用时自动清除认证信息并跳转登录页面 - 完善用户界面提示,显示检测状态和自动跳转信息 - 支持手动重试连接和返回登录页面操作 --- src/components/common/ErrorTip.vue | 222 ++++++++++++++++++++++++++++- 1 file changed, 216 insertions(+), 6 deletions(-) diff --git a/src/components/common/ErrorTip.vue b/src/components/common/ErrorTip.vue index 442bdd0..ace0736 100644 --- a/src/components/common/ErrorTip.vue +++ b/src/components/common/ErrorTip.vue @@ -18,19 +18,229 @@ alt="" class="w-1/3" > - - {{ $t('app.backHome') }} - + + +
+ + + + +

+ + +

+
+
+
+
+
+ + +
+

+ + +

+
+
+ + +
+ + {{ isRetrying ? '重试中...' : '重试连接' }} + + + + {{ $t('app.backHome') }} + + + + 返回登录页面 + +
+ +