File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# 更新日志
22
3+ ### v9.51 ` 2026-05-08 `
4+ - fix 日历获取所有日记的问题
5+ - 日历正常展示
6+
37### v9.50 ` 2026-04-07 `
48- scss 颜色方法大改,使用最新颜色,替换 @import 方法
59- 优化 echarts 引入,按需引入,避免文件过大
Original file line number Diff line number Diff line change 33 "nameZh" : " 标题日记" ,
44 "type" : " module" ,
55 "description" : " 一句话概括你的一天" ,
6- "version" : " 9.5.0 " ,
6+ "version" : " 9.5.1 " ,
77 "dateModify" : " 2026.05.08" ,
88 "dateInit" : " 2018.08.14" ,
99 "author" : {
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ const diaryList = ref<Array<EntityDiaryForm>>([])
129129const formSearch = ref <DiarySearchParamsForCalendar >({
130130 keywords: ' ' ,
131131 pageNo: 1 ,
132- pageSize: 1000 , // 单页请求条数
132+ pageSize: 9999 , // 单页请求条数
133133 categories: ' ' ,
134134 filterShared: 0 , // 1 是筛选,0 是不筛选
135135
@@ -144,8 +144,8 @@ function getAllShowingCalendarDiaries() {
144144 formSearch .value .keywords = JSON .stringify (projectStore .keywords )
145145 formSearch .value .categories = JSON .stringify (projectStore .filteredCategories )
146146 formSearch .value .filterShared = projectStore .isFilterShared ? 1 : 0
147- formSearch .value .timeStart = projectStore . dateFilterTimeStart || undefined
148- formSearch .value .timeEnd = projectStore . dateFilterTimeEnd || undefined
147+ formSearch .value .timeStart = minDate . value ? Moment ( minDate . value ). startOf ( ' day ' ). format ( ' YYYY-MM-DD HH:mm:ss ' ) : ' '
148+ formSearch .value .timeEnd = maxDate . value ? Moment ( maxDate . value ). endOf ( ' day ' ). format ( ' YYYY-MM-DD HH:mm:ss ' ) : ' '
149149 diaryList .value = []
150150
151151 isLoading .value = true
@@ -302,8 +302,8 @@ const initPage = ref({
302302})
303303
304304// 跟踪当前页面和日期范围
305- const minDate = ref <Date >()
306- const maxDate = ref <Date >()
305+ const minDate = ref <Date >(Moment (). startOf ( ' year ' ). toDate () )
306+ const maxDate = ref <Date >(Moment (). endOf ( ' year ' ). toDate () )
307307
308308// 处理日历页面滑动时的变化
309309function onPageChange(data : any ) {
Original file line number Diff line number Diff line change 66 display : flex ;
77 justify-content : flex-start ;
88 overflow-y : auto ;
9+ background-color : $bg-light ;
910}
1011
1112// 日历本体
5152}
5253
5354@media (prefers-color-scheme : dark ) {
55+ .calendar-container {
56+ background-color : $dark-bg ;
57+ }
5458 .calendar-diary-list {
5559 background-color : $dark-bg ;
5660 border-left-color : $dark-border ;
You can’t perform that action at this time.
0 commit comments