mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
feat(console): give each group its own routes URL
Resolve the selected group from /admin/groups/{groupId}, validate console paths, and use browser history for back navigation. Keep Groups active and let an active mobile-tab tap return to the list. Scope pending route loads to their group and retain the count beside long headings.
This commit is contained in:
1 parent
ba95456e67
commit
535bfa98ce
11 files changed
+249
-63
No files matched your search
@@ -1,3 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { parseAdminPath } from "~/utils/admin-path";
|
||||
|
||||
definePageMeta({
|
||||
// Unknown console paths (e.g. /admin/foo, /admin/groups/a/b) 404 before rendering.
|
||||
validate: (route) => parseAdminPath(route.params.slug) !== null,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ConsolePage />
|
||||
</template>
|
||||
Reference in new issue
Block a user