chore(preview): adjustments in image loading & fallback

This commit is contained in:
2024-04-15 16:39:46 +02:00
parent 3424f9a952
commit 8dc670b631
4 changed files with 63 additions and 80 deletions
-2
View File
@@ -14,8 +14,6 @@ export default defineComponent({
methods: {
previewStock(stock: IStock) {
// if (this.store.chosenVehicle?.imageSrc != stock.imgSrc) this.store.imageLoading = true;
if (stock.isLoco) {
const chosenLoco = this.store.locoDataList.find((v) => v.type == stock.type) || null;
this.store.chosenVehicle = chosenLoco;