修复管理员工作台函数缺少闭合大括号

This commit is contained in:
zhangshy
2026-09-14 10:56:45 +08:00
parent bfbaf823c2
commit 4b7ee13cf5
2 changed files with 13 additions and 0 deletions
@@ -537,6 +537,8 @@ if (requireAdmin()) {
apiClient.reportError(error);
status.textContent = error.message || '提交失败';
} finally { submit.disabled = false; }
}
async function loadDriftReviews() {
renderLoading(targets.drift, 3);
try {
+11
View File
@@ -321,6 +321,17 @@ def test_admin_workspace_is_not_an_identity_placeholder() -> None:
assert label in html
def test_admin_workspace_rule_submit_closes_before_next_function() -> None:
source = (
PORTAL / "employee-console" / "workspace" / "workspace.js"
).read_text(encoding="utf-8")
assert (
" } finally { submit.disabled = false; }\n"
" }\n\n"
" async function loadDriftReviews() {"
) in source
def test_frontend_has_no_remote_scripts_or_token_local_storage() -> None:
sources = "\n".join(
path.read_text(encoding="utf-8")