From 4a4d17f75c257133b9dac5c37ce108e7385b2130 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 16 Nov 2026 02:49:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=A1=E7=90=86=E7=AB=AF=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=BB=93=E6=9E=9C=E4=BC=9A=E6=98=BE=E7=A4=BA=E5=9C=A8?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=A8=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/features/admin/UsersView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/features/admin/UsersView.vue b/web/src/features/admin/UsersView.vue index 477fa30..8e4d357 100644 --- a/web/src/features/admin/UsersView.vue +++ b/web/src/features/admin/UsersView.vue @@ -168,8 +168,9 @@ function checkLabel(payload: Record) { } function validityText(row: UserRow) { + if (checkingAll.value || checkingId.value === row.employee_id) return "正在检查"; const live = liveResults.value[row.employee_id]; - if (live === "检查失败") return live; + if (live) return live; if (!row.has_credential) return "未保存凭证"; if (row.credential_valid === true) return "有效"; if (row.credential_valid === false) return "已失效"; @@ -229,6 +230,7 @@ async function checkOne(row: UserRow) { const label = checkLabel(payload); remember(row.employee_id, label); errorText.value = label === "检查失败" ? detailOf(payload, "") : ""; + await load(); } catch { remember(row.employee_id, "检查失败"); errorText.value = "检查失败"; @@ -266,6 +268,7 @@ async function checkAll() { } liveResults.value = next; errorText.value = notes.join(";"); + await load(); } catch { errorText.value = "检查失败"; } finally {