mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
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.
13 lines
305 B
Vue
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>
|