Update frontend/src/components/Details/GameData.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Zurdi
2025-11-19 18:10:39 +01:00
committed by GitHub
parent 81dd588e5c
commit b9ace0f68d

View File

@@ -22,13 +22,15 @@ const { mdAndDown } = useDisplay();
// Watch for sub-tab changes and update URL
watch(tab, (newSubTab) => {
router.push({
path: route.path,
query: {
...route.query,
subtab: newSubTab,
},
});
if (route.query.subtab !== newSubTab) {
router.push({
path: route.path,
query: {
...route.query,
subtab: newSubTab,
},
});
}
});
// Watch for URL changes and update sub-tab