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:
parent
bdc9f0f711
commit
27ed605223
@ -121,7 +121,6 @@ pub fn CommentSection(post_id: i32) -> Element {
|
|||||||
rsx! {
|
rsx! {
|
||||||
p { class: "text-paper-tertiary text-center py-8", "暂无评论,成为第一个评论的人吧!" }
|
p { class: "text-paper-tertiary text-center py-8", "暂无评论,成为第一个评论的人吧!" }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
rsx! {
|
rsx! {
|
||||||
CommentList {
|
CommentList {
|
||||||
|
|||||||
@ -115,8 +115,7 @@ pub fn Admin() -> Element {
|
|||||||
"text-[var(--color-paper-secondary)]",
|
"text-[var(--color-paper-secondary)]",
|
||||||
"text-[var(--color-paper-primary)]",
|
"text-[var(--color-paper-primary)]",
|
||||||
)
|
)
|
||||||
}
|
};
|
||||||
}
|
|
||||||
rsx! {
|
rsx! {
|
||||||
div { class: "text-sm font-medium {color_class}", "待审评论" }
|
div { class: "text-sm font-medium {color_class}", "待审评论" }
|
||||||
div { class: "flex items-baseline justify-between mt-4",
|
div { class: "flex items-baseline justify-between mt-4",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user