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;
|
code: string;
|
||||||
name: string;
|
name: string;
|
||||||
online: boolean;
|
online: boolean;
|
||||||
|
ip?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user