enhance(client): improve router

Fix #8902
This commit is contained in:
syuilo
2022-06-29 16:00:00 +09:00
parent 4fd386c3dc
commit bb68cfaa81
4 changed files with 22 additions and 4 deletions

View File

@@ -95,8 +95,14 @@ import number from '@/filters/number';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
const props = withDefaults(defineProps<{
initialTab?: string;
}>(), {
initialTab: 'overview',
});
let stats = $ref(null);
let tab = $ref('overview');
let tab = $ref(props.initialTab);
const initStats = () => os.api('stats', {
}).then((res) => {

View File

@@ -109,7 +109,7 @@ const menuDef = $computed(() => [{
}, {
icon: 'fas fa-globe',
text: i18n.ts.federation,
to: '/admin/federation',
to: '/about#federation',
active: props.initialPage === 'federation',
}, {
icon: 'fas fa-clipboard-list',