Skip to content

Commit 8ff1c44

Browse files
committed
优化:反转通知列表输出顺序,以便最新通知优先显示
1 parent 428ecd5 commit 8ff1c44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/commands/handlers/notice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl NoticeCommand {
112112
if result.success {
113113
if let Some(notices) = result.data {
114114
println!("{}通知列表 ({}条):", type_name, notices.len());
115-
for (i, notice) in notices.iter().enumerate() {
115+
for (i, notice) in notices.iter().rev().enumerate() {
116116
match notice_type {
117117
NoticeType::Point => {
118118
let point = NoticePoint::from(notice);

0 commit comments

Comments
 (0)