This commit is contained in:
2026-08-13 11:34:25 +08:00
parent fe855e0fa2
commit 2aa737edaa
3 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -27,7 +27,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<title>民众智创</title>
<script type="module" crossorigin src="/assets/index-BWkfqdZQ.js"></script>
<script type="module" crossorigin src="/assets/index-DujE7ipQ.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSYnuUvx.css">
</head>
<body>
+1
View File
@@ -117,6 +117,7 @@ if (!res.ok) {
// 检测"被踢出"错误 — 单设备登录互斥
if (res.status === 401 && typeof parsed?.detail === 'string' && parsed.detail.includes('其他设备登录')) {
window.dispatchEvent(new CustomEvent('kicked-out', { detail: { message: parsed.detail } }));
throw new Error(parsed.detail); // 阻止后续自动跳转,由通知按钮处理
}
if (res.status === 401 && !options.skipAuthRedirect) {
clearToken();