mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 还原momentjs
This commit is contained in:
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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user