Files
WebHooker/app/pages/admin/[...slug].vue
T
翅膀 535bfa98ce 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.
2026-10-17 11:13:09 +08:00

13 lines
305 B
Vue

<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>