修复获取访问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,
});