ui: 还原momentjs

This commit is contained in:
undefined committed 2021-06-11 16:51:48 +08:00
1 parent 83a45940aa
commit e6c1592875
2 files changed
+4 -3

No files matched your search

@@ -1,5 +1,5 @@
import _ from 'lodash';
import moment from 'dayjs';
import moment from 'moment';
import tpl from 'vj/utils/tpl';
export default class Calendar {
@@ -165,7 +165,6 @@ export default class Calendar {
}
buildBodyData() {
const now = moment();
const days = [];
{
// back fill
@@ -206,6 +205,7 @@ export default class Calendar {
}
}
const now = moment();
days.forEach((day) => {
day.current = day.date.isSame(now, 'day'); // eslint-disable-line no-param-reassign
});