From d4dc61f34f86fd15e7f9d735083d69f668aeebb0 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Thu, 7 Mar 2024 12:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20operateLog?= =?UTF-8?q?=20=E5=92=8C=20loginLog=20=E5=9C=A8=20IDEA=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/loginLog/index.ts | 1 + src/utils/formatTime.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ''