mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 17:56:35 +08:00
86f73de893
* fix: githubactions config * fix: update build env * fix: remove cache Co-authored-by: ivringpeng <pengyue970725@gmail.com>
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
// 获取常用时间
|
|
import dayjs from 'dayjs';
|
|
|
|
export const LAST_7_DAYS = [
|
|
dayjs().subtract(7, 'day').format('YYYY-MM-DD'),
|
|
dayjs().subtract(1, 'day').format('YYYY-MM-DD'),
|
|
];
|
|
|
|
export const LAST_30_DAYS = [
|
|
dayjs().subtract(30, 'day').format('YYYY-MM-DD'),
|
|
dayjs().subtract(1, 'day').format('YYYY-MM-DD'),
|
|
];
|