add alternative layout for /tickets page

This commit is contained in:
j3d1 2024-01-17 20:08:28 +01:00
parent a3f6a96f95
commit b28bd7b23b
7 changed files with 192 additions and 16 deletions

View file

@ -100,11 +100,14 @@ router.beforeEach((to, from, next) => {
}
});
router.afterEach((to/*, from*/) => {
router.afterEach((to, from) => {
if (to.params.event) {
//console.log('update last event', to.params.event);
store.commit('updateLastEvent', to.params.event);
}
if (to.query.layout !== from.query.layout) {
store.commit('triggerLayoutChange', to.query.layout);
}
});
export default router;