Commit 02f6968f authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents b8675138 f427a5b5
......@@ -97,12 +97,7 @@ export function timeRange(val: number) {
break;
case 7:
st = moment('1971-01-01', 'YYYY-MM-DD').valueOf(); // 或者0
et = moment(
moment()
.year(moment().year() - 1)
.endOf('year')
.format('YYYY-MM-DD HH:mm:ss'),
).valueOf();
et = moment().subtract(1, "year").valueOf();
break;
}
return { st, et }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment