mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: vehicle preview loading
This commit is contained in:
@@ -50,7 +50,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
'tooltipStore.type'(prev, val) {
|
vehicleName(prev, val) {
|
||||||
if (prev != val) this.imageState = 'loading';
|
if (prev != val) this.imageState = 'loading';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -81,18 +81,6 @@ export default defineComponent({
|
|||||||
(c) => c.id == this.tooltipStore.content.split(':')[1]
|
(c) => c.id == this.tooltipStore.content.split(':')[1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// vehicleProps() {
|
|
||||||
// const vehicleDataArray = this.apiStore.vehiclesData?.vehicleList.find(
|
|
||||||
// ([name]) => name === this.vehicleName
|
|
||||||
// );
|
|
||||||
|
|
||||||
// if (!vehicleDataArray) return null;
|
|
||||||
|
|
||||||
// return (
|
|
||||||
// this.apiStore.vehiclesData!.vehicleProps.find((v) => v.type == vehicleDataArray[1]) ?? null
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user