feature: routing pomiędzy tabami

This commit is contained in:
2023-05-25 19:27:01 +02:00
parent fa610f6ee1
commit 6eb73ba743
3 changed files with 44 additions and 24 deletions
+12
View File
@@ -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>