✨ Support subroutes of settings

This commit is contained in:
minie4 committed 2023-06-06 19:35:02 +02:00
1 parent e416e599fa
commit 9164f56172
2 files changed
+7 -5

No files matched your search

+4 -2
View File
@@ -57,9 +57,11 @@ const router = createRouter({
],
});
export let lastRoute = ref();
export let lastDataRoute = ref();
router.beforeEach((_to, from) => {
lastRoute.value = from;
if (from.meta.dataView) {
lastDataRoute.value = from;
}
return true;
});