fix(comments): 修复 section.rs / dashboard.rs 括号不匹配导致编译失败

两处同一类错误:match arm 内 `if {} else {}` 表达式后多了一个 `}`,
导致 arm 被提前关闭,触发 "unexpected closing delimiter" 编译错误。

- section.rs:125 — `if !has_any {…}` 块后多余的 `}`,删除使 if-else 合一
- dashboard.rs:119 — 同类问题,另需补 `;` 终止 `let` 语句
This commit is contained in:
xfy 2026-07-15 18:12:00 +08:00
parent bdc9f0f711
commit 27ed605223
2 changed files with 1 additions and 3 deletions

View File

@ -121,7 +121,6 @@ pub fn CommentSection(post_id: i32) -> Element {
rsx! {
p { class: "text-paper-tertiary text-center py-8", "暂无评论,成为第一个评论的人吧!" }
}
}
} else {
rsx! {
CommentList {

View File

@ -115,8 +115,7 @@ pub fn Admin() -> Element {
"text-[var(--color-paper-secondary)]",
"text-[var(--color-paper-primary)]",
)
}
}
};
rsx! {
div { class: "text-sm font-medium {color_class}", "待审评论" }
div { class: "flex items-baseline justify-between mt-4",