const.tsx 302 B

123456789
  1. import moment from "moment";
  2. export const rangePresets: any = {
  3. '今天排行': [moment(), moment()],
  4. '昨天排行': [moment().subtract(1, 'd'), moment().subtract(1, 'd')],
  5. '7日排行': [moment().subtract(7, 'd'), moment()],
  6. '30日排行': [moment().subtract(30, 'd'), moment()]
  7. };