mirror of
https://github.com/rommapp/romm.git
synced 2026-02-19 07:50:57 +01:00
Update frontend/src/components/Details/GameData.vue
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user