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) => {