feat(station-card): show station ip address when click station name
This commit is contained in:
@@ -2,4 +2,5 @@ export interface Station {
|
||||
code: string;
|
||||
name: string;
|
||||
online: boolean;
|
||||
ip?: string;
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ function useStationListMutation() {
|
||||
return {
|
||||
...station,
|
||||
online: !!verifyList.find((stn) => stn.stationCode === station.code)?.onlineState,
|
||||
ip: verifyList.find((stn) => stn.stationCode === station.code)?.ipAddress,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user