From b511821aaf729de68aac4f6c5cbba2a4ba52f20e Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 2 Jun 2024 20:31:32 +0900 Subject: [PATCH] =?UTF-8?q?=E9=A0=85=E7=9B=AE=E3=81=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=82=92=E6=94=B9?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/embed/note.vue | 7 ++++++- packages/frontend/src/pages/embed/user-timeline.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/embed/note.vue b/packages/frontend/src/pages/embed/note.vue index abfc4b0343..346b708bb8 100644 --- a/packages/frontend/src/pages/embed/note.vue +++ b/packages/frontend/src/pages/embed/note.vue @@ -7,6 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
+
@@ -14,6 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only import { ref } from 'vue'; import * as Misskey from 'misskey-js'; import MkNote from '@/components/MkNote.vue'; +import XNotFound from '@/pages/not-found.vue'; import { misskeyApi } from '@/scripts/misskey-api.js'; const props = defineProps<{ @@ -28,7 +30,10 @@ misskeyApi('notes/show', { }).then(res => { note.value = res; loading.value = false; -}); +}).catch(err => { + console.error(err); + loading.value = false; +})