From bd0b7f90cf54d06a09fd4afb935dda45c691fbd6 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:48:11 +0900 Subject: [PATCH] lint --- packages/frontend/src/pages/embed/clip.vue | 2 ++ packages/frontend/src/pages/embed/note.vue | 2 ++ packages/frontend/src/pages/embed/user-timeline.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/frontend/src/pages/embed/clip.vue b/packages/frontend/src/pages/embed/clip.vue index 0038a052a9..1635a1d8d3 100644 --- a/packages/frontend/src/pages/embed/clip.vue +++ b/packages/frontend/src/pages/embed/clip.vue @@ -68,7 +68,9 @@ function redirectIfNotEmbedPage() { router.replace(`/clips/${props.clipId}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); // デフォルト: true diff --git a/packages/frontend/src/pages/embed/note.vue b/packages/frontend/src/pages/embed/note.vue index 928494adc2..026e5e9bf6 100644 --- a/packages/frontend/src/pages/embed/note.vue +++ b/packages/frontend/src/pages/embed/note.vue @@ -32,7 +32,9 @@ function redirectIfNotEmbedPage() { router.replace(`/notes/${props.noteId}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); provide('EMBED_ORIGINAL_ENTITY_URL', `${url}/notes/${props.noteId}`); diff --git a/packages/frontend/src/pages/embed/user-timeline.vue b/packages/frontend/src/pages/embed/user-timeline.vue index 7faa4a6fbb..9aa2a7bdca 100644 --- a/packages/frontend/src/pages/embed/user-timeline.vue +++ b/packages/frontend/src/pages/embed/user-timeline.vue @@ -74,7 +74,9 @@ function redirectIfNotEmbedPage() { router.replace(`/@${props.username}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); // デフォルト: true