✨ Support subroutes of settings
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user