feat(station-card): show station ip address when click station name

This commit is contained in:
yangsy
2025-11-06 12:48:50 +08:00
parent 1fe0203890
commit 85df036a6c
2 changed files with 2 additions and 0 deletions

View File

@@ -2,4 +2,5 @@ export interface Station {
code: string; code: string;
name: string; name: string;
online: boolean; online: boolean;
ip?: string;
} }

View File

@@ -62,6 +62,7 @@ function useStationListMutation() {
return { return {
...station, ...station,
online: !!verifyList.find((stn) => stn.stationCode === station.code)?.onlineState, online: !!verifyList.find((stn) => stn.stationCode === station.code)?.onlineState,
ip: verifyList.find((stn) => stn.stationCode === station.code)?.ipAddress,
}; };
}); });
} }