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:
翅膀 committed 2026-10-17 11:13:09 +08:00
1 parent ba95456e67
commit 535bfa98ce
11 files changed
+249 -63

No files matched your search

+9
View File
@@ -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>