Skip to content

Commit 4b569c3

Browse files
committed
refactor: 代码重构
1 parent 89e944c commit 4b569c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ private List<string> GetWeekList()
537537

538538
// 调整顺序
539539
var firstDayIndex = (int)FirstDayOfWeek;
540-
return list.Skip(firstDayIndex).Concat(list.Take(firstDayIndex)).ToList();
540+
return [.. list.Skip(firstDayIndex), .. list.Take(firstDayIndex)];
541541
}
542542

543543
private async Task UpdateDisabledDaysCache(bool force)

0 commit comments

Comments
 (0)