From 0e94fa51f426f813cb2afc1a015529aa99b77bc8 Mon Sep 17 00:00:00 2001 From: arily Date: Fri, 12 Apr 2024 01:03:16 +0800 Subject: [PATCH] declare routes --- src/components/userpage/heading.vue | 2 +- src/pages/auth/login.vue | 2 +- src/pages/beatmap/[id].server.vue | 2 +- src/pages/me/settings.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/userpage/heading.vue b/src/components/userpage/heading.vue index e3fff69f..37443503 100755 --- a/src/components/userpage/heading.vue +++ b/src/components/userpage/heading.vue @@ -6,7 +6,7 @@ import { useSession } from '~/store/session' import userpageStore from '~/store/userpage' const page = userpageStore() -const route = useRoute() +const route = useRoute<'user-handle'>() const { t, locale } = useI18n() const app$ = useNuxtApp() const session = useSession() diff --git a/src/pages/auth/login.vue b/src/pages/auth/login.vue index ff504ba5..eb39c63f 100755 --- a/src/pages/auth/login.vue +++ b/src/pages/auth/login.vue @@ -13,7 +13,7 @@ definePageMeta({ layout: 'centered', }) -const route = useRoute() +const route = useRoute<'auth-login'>() const app = useNuxtApp() const { t } = useI18n() diff --git a/src/pages/beatmap/[id].server.vue b/src/pages/beatmap/[id].server.vue index 11c1b7ea..9c299482 100644 --- a/src/pages/beatmap/[id].server.vue +++ b/src/pages/beatmap/[id].server.vue @@ -1,6 +1,6 @@