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

pull/420/head
shizhong 2024-03-07 12:35:03 +08:00
parent 73f6f15c54
commit d4dc61f34f
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ export interface LoginLogVO {
userId: number
userType: number
username: string
result: number
status: number
userIp: string
userAgent: string

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 ''