diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-29 16:00:00 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-29 16:00:00 +0900 |
| commit | bb68cfaa815ce4b33f0671710fd94f9d94f4324c (patch) | |
| tree | f14fefc1dceeb81e991749e74a5f9eed2115192d /packages/client/src/pages | |
| parent | chore(client): tweak client (diff) | |
| download | misskey-bb68cfaa815ce4b33f0671710fd94f9d94f4324c.tar.gz misskey-bb68cfaa815ce4b33f0671710fd94f9d94f4324c.tar.bz2 misskey-bb68cfaa815ce4b33f0671710fd94f9d94f4324c.zip | |
enhance(client): improve router
Fix #8902
Diffstat (limited to 'packages/client/src/pages')
| -rw-r--r-- | packages/client/src/pages/about.vue | 8 | ||||
| -rw-r--r-- | packages/client/src/pages/admin/index.vue | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/packages/client/src/pages/about.vue b/packages/client/src/pages/about.vue index de89e3593c..683f7446b8 100644 --- a/packages/client/src/pages/about.vue +++ b/packages/client/src/pages/about.vue @@ -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) => { diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 5ffbe34955..d967a081b7 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -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', |