Optimize date response. Add system log table.

This commit is contained in:
2023-11-03 18:25:58 +08:00
parent bc196d4ba9
commit eadc74ca67
9 changed files with 190 additions and 36 deletions

View File

@@ -1,8 +1,7 @@
import React from 'react'
import { notification } from 'antd'
import moment from 'moment'
import '@/assets/css/pages/login.scss'
import { setToken } from '@/utils/common'
import { getLocalTime, setToken } from '@/utils/common'
import { getUserInfo, login } from '@/utils/auth'
import {
SYSTEM_LOGIN_SUCCESS,
@@ -44,10 +43,8 @@ const Login: React.FC = () => {
<br />
<span>
{moment(user.lastLoginTime).format(
'yyyy-MM-DD HH:mm:ssZ'
)}
{user.lastLoginIp}
{getLocalTime(user.lastLoginTime)}
{user.lastLoginIp}
</span>
</>
),