This commit is contained in:
2022-07-26 00:31:00 +02:00
parent bea95f9cf3
commit 451a184ccb
9 changed files with 149 additions and 159 deletions
+3 -1
View File
@@ -1,7 +1,8 @@
import { IStore } from './types';
import { ICarWagon, ILocomotive, IStore } from './types';
import { defineStore } from 'pinia';
import { carDataList, isTrainPassenger, locoDataList, maxStockSpeed, totalLength, totalMass } from './utils/vehicleUtils';
export const useStore = defineStore({
id: 'store',
state: () =>
@@ -9,6 +10,7 @@ export const useStore = defineStore({
chosenCar: null,
chosenLoco: null,
chosenCargo: null,
chosenVehicle: null,
showSupporter: false,
imageLoading: false,