修复登录页面地图标记数据中的字段名称,确保与后端数据结构一致,提升代码可维护性。

This commit is contained in:
zyh
2025-04-10 22:13:26 +00:00
parent e6ef6d656e
commit 9c20cf1f6e

View File

@@ -115,7 +115,7 @@ export const LoginMapPage = () => {
longitude: location.longitude as number,
latitude: location.latitude as number,
title: location.user?.nickname || location.user?.username || '未知用户',
description: `登录时间: ${dayjs(location.login_time).format('YYYY-MM-DD HH:mm:ss')}\nIP地址: ${location.ip_address}`,
description: `登录时间: ${dayjs(location.loginTime).format('YYYY-MM-DD HH:mm:ss')}\nIP地址: ${location.ipAddress}`,
status: 'online',
type: 'login',
extraData: location