mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Bug fix: kompatybilność replaceAll
This commit is contained in:
@@ -57,15 +57,13 @@ export default defineComponent({
|
|||||||
() => data.value.dataConnectionStatus === DataStatus.Loaded
|
() => data.value.dataConnectionStatus === DataStatus.Loaded
|
||||||
);
|
);
|
||||||
|
|
||||||
const stationInfo = computed(() => {
|
const stationInfo = computed(() =>
|
||||||
if (!route.query.station) return;
|
data.value.stationList.find(
|
||||||
|
|
||||||
return data.value.stationList.find(
|
|
||||||
(station) =>
|
(station) =>
|
||||||
station.stationName ===
|
station.stationName ===
|
||||||
route.query.station?.toString().replaceAll("_", " ")
|
route.query.station?.toString().replace(/_/g, " ")
|
||||||
);
|
)
|
||||||
});
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
data,
|
data,
|
||||||
|
|||||||
Reference in New Issue
Block a user