refactor: adjusted to new API format

This commit is contained in:
2024-06-08 15:44:35 +02:00
parent 86ba9112de
commit 6b0c6d63a4
11 changed files with 641 additions and 120 deletions
-2
View File
@@ -69,8 +69,6 @@ export default defineComponent({
const isTractionUnit = /^([a-zA-Z\d]{0,}-\d{0,})/.test(type);
console.log(type, isTractionUnit);
if (isTractionUnit) {
const [locoType, spawnProps] = type.split(',');
vehicle = this.store.locoDataList.find((loco) => loco.type == locoType) || null;