diff --git a/src/router/router.ts b/src/router/router.ts index 9ed87e5..c01ae51 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -95,8 +95,9 @@ export const router = createRouter({ routes }) -router.beforeEach(() => { +router.beforeEach((to, from) => { if (!("startViewTransition" in document)) return + if (to.path === from.path) return return new Promise((resolve) => { ;( document as Document & {