mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 优化日历
This commit is contained in:
parent
6927c0b30b
commit
7d1979f067
@ -368,9 +368,9 @@ export default {
|
|||||||
const startYear = start.getFullYear();
|
const startYear = start.getFullYear();
|
||||||
const endYear = end.getFullYear();
|
const endYear = end.getFullYear();
|
||||||
if (startYear !== endYear) {
|
if (startYear !== endYear) {
|
||||||
this.rangeText = $A.dayjs(date).format("YYYY.MM.DD") + " ~ " + $A.dayjs(end).format("YYYY.MM.DD");
|
this.rangeText = $A.dayjs(start).format("YYYY.MM.DD") + " ~ " + $A.dayjs(end).format("YYYY.MM.DD");
|
||||||
} else {
|
} else {
|
||||||
this.rangeText = $A.dayjs(date).format("YYYY.MM.DD") + " ~ " + $A.dayjs(end).format("MM.DD");
|
this.rangeText = $A.dayjs(start).format("YYYY.MM.DD") + " ~ " + $A.dayjs(end).format("MM.DD");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user