mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
feature: routing pomiędzy tabami
This commit is contained in:
+12
@@ -77,6 +77,18 @@ export default defineComponent({
|
||||
).json();
|
||||
|
||||
this.store.stockData = stockData;
|
||||
|
||||
// routing
|
||||
switch (window.location.pathname) {
|
||||
case '/numgnr':
|
||||
this.store.stockSectionMode = 'number-generator';
|
||||
break;
|
||||
case '/stockgnr':
|
||||
this.store.stockSectionMode = 'stock-generator';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user