diff --git a/src/pages/admin/dashboard.rs b/src/pages/admin/dashboard.rs index 0dc353f..faf6afc 100644 --- a/src/pages/admin/dashboard.rs +++ b/src/pages/admin/dashboard.rs @@ -55,7 +55,7 @@ pub fn Admin() -> Element { "最近文章" } match &*posts_res.read() { - Some(Ok(PostListResponse { posts })) => { + Some(Ok(PostListResponse { posts, .. })) => { rsx! { div { class: "space-y-0", for post in posts.iter().take(5) { diff --git a/src/pages/admin/posts.rs b/src/pages/admin/posts.rs index 389e12a..fb995ef 100644 --- a/src/pages/admin/posts.rs +++ b/src/pages/admin/posts.rs @@ -27,7 +27,7 @@ pub fn Posts() -> Element { } match &*posts_res.read() { - Some(Ok(PostListResponse { posts })) => { + Some(Ok(PostListResponse { posts, .. })) => { if posts.is_empty() { rsx! { div { class: "text-center py-20 text-gray-500 dark:text-[#9b9c9d]",