收敛树命令与投影切换

This commit is contained in:
lix-2026
2026-04-30 06:58:17 +08:00
parent 3cc090ba5e
commit 8c895b3dc0
16 changed files with 980 additions and 281 deletions
@@ -567,8 +567,7 @@ pub async fn title(
let title = body.title.trim();
if title.is_empty() {
return Err(
WebError::bad_request_code("title_required", "缺少有效页面标题")
.with_context(&context),
WebError::bad_request_code("title_required", "缺少有效页面标题").with_context(&context),
);
}
let effective_workspace_id =
@@ -974,6 +973,9 @@ mod tests {
.expect("body");
let payload: Value = serde_json::from_slice(&body).expect("json");
assert_eq!(payload["meta"]["commandName"], "page.layout.updateOptions");
assert_eq!(payload["meta"]["canonicalCommand"], "page.layout.updateOptions");
assert_eq!(
payload["meta"]["canonicalCommand"],
"page.layout.updateOptions"
);
}
}