diff --git a/src/api/system/loginLog/index.ts b/src/api/system/loginLog/index.ts index cadaeaf3..65c1014a 100644 --- a/src/api/system/loginLog/index.ts +++ b/src/api/system/loginLog/index.ts @@ -7,6 +7,7 @@ export interface LoginLogVO { userId: number userType: number username: string + result: number status: number userIp: string userAgent: string diff --git a/src/utils/formatTime.ts b/src/utils/formatTime.ts index 6c79deba..e501bacb 100644 --- a/src/utils/formatTime.ts +++ b/src/utils/formatTime.ts @@ -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 ''