修复管理员工作台函数缺少闭合大括号
This commit is contained in:
@@ -537,6 +537,8 @@ if (requireAdmin()) {
|
|||||||
apiClient.reportError(error);
|
apiClient.reportError(error);
|
||||||
status.textContent = error.message || '提交失败';
|
status.textContent = error.message || '提交失败';
|
||||||
} finally { submit.disabled = false; }
|
} finally { submit.disabled = false; }
|
||||||
|
}
|
||||||
|
|
||||||
async function loadDriftReviews() {
|
async function loadDriftReviews() {
|
||||||
renderLoading(targets.drift, 3);
|
renderLoading(targets.drift, 3);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -321,6 +321,17 @@ def test_admin_workspace_is_not_an_identity_placeholder() -> None:
|
|||||||
assert label in html
|
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:
|
def test_frontend_has_no_remote_scripts_or_token_local_storage() -> None:
|
||||||
sources = "\n".join(
|
sources = "\n".join(
|
||||||
path.read_text(encoding="utf-8")
|
path.read_text(encoding="utf-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user