🐛 修复 operateLog 和 loginLog 在 IDEA 报错的问题

This commit is contained in:
YunaiV committed 2023-12-02 19:25:50 +08:00
1 parent 757fbddef2
commit 1066551fd1
7 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ export const defaultShortcuts = [
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
* @returns 返回拼接后的时间字符串
*/
export function formatDate(date: dayjs.ConfigType, format?: string): string {
export function formatDate(date: Date, format?: string): string {
// 日期不存在,则返回空
if (!date) {
return ''