mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
chore: added more advanced routing to elements
This commit is contained in:
+2
-14
@@ -50,8 +50,6 @@ export const useStore = defineStore({
|
||||
|
||||
vehiclePreviewSrc: '',
|
||||
|
||||
stockSectionMode: 'stock-list',
|
||||
|
||||
isRandomizerCardOpen: false,
|
||||
isRealStockListCardOpen: false,
|
||||
|
||||
@@ -139,18 +137,8 @@ export const useStore = defineStore({
|
||||
},
|
||||
|
||||
handleRouting() {
|
||||
switch (window.location.pathname) {
|
||||
case '/numgnr':
|
||||
this.stockSectionMode = 'number-generator';
|
||||
break;
|
||||
case '/stockgnr':
|
||||
this.stockSectionMode = 'stock-generator';
|
||||
break;
|
||||
case '/vehicles':
|
||||
this.stockSectionMode = 'wiki-list';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
if (window.location.search.includes('trainId=')) {
|
||||
const trainId = window.location.search;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user