fix: 管理端检查结果会显示在用户表里

This commit is contained in:
2026-11-16 02:49:09 +08:00
parent 8706b8f447
commit 4a4d17f75c
+4 -1
View File
@@ -168,8 +168,9 @@ function checkLabel(payload: Record<string, unknown>) {
}
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 {