修复获取访问ip逻辑

This commit is contained in:
hanhh
2021-08-22 14:07:00 +08:00
parent 85093b2856
commit bbc9ee120d
3 changed files with 8 additions and 5 deletions
+4 -3
View File
@@ -37,13 +37,14 @@ const Login = () => {
notification.success({
message: '登录成功!',
description: (
<div>
<>
<div>
{new Date(lastlogon).toLocaleString() || '-'}
{lastlogon ? new Date(lastlogon).toLocaleString() : '-'}
</div>
<div>{lastaddr || '-'}</div>
<div>IP{lastip || '-'}</div>
</div>
</>
),
duration: 5,
});