调试接口

This commit is contained in:
wangxiaowei
2025-12-20 22:44:32 +08:00
parent fcd1e10129
commit dcf36df5aa
12 changed files with 219 additions and 130 deletions

View File

@ -147,3 +147,14 @@ export function randomLabelColor (index: number) {
return tagColors[index % tagColors.length]
}
/**
* 获取当前年月日格式YYYY-MM-DD
*/
export function getCurrentDate() {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
}