From 4e0d57000cd97991e286b27cb4dd1c14aeb2faab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:04:52 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BB=A5=E5=89=8D=E3=81=AEpop?= =?UTF-8?q?up=E3=81=AE=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=97=E6=96=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20(#14421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/flash/flash.vue | 6 ++++-- packages/frontend/src/pages/gallery/post.vue | 6 ++++-- packages/frontend/src/pages/page.vue | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/pages/flash/flash.vue b/packages/frontend/src/pages/flash/flash.vue index 7b7f8bb5f2..a6a99ba633 100644 --- a/packages/frontend/src/pages/flash/flash.vue +++ b/packages/frontend/src/pages/flash/flash.vue @@ -236,10 +236,12 @@ function reportAbuse() { const pageUrl = `${url}/play/${flash.value.id}`; - os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { + const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { user: flash.value.user, initialComment: `Play: ${pageUrl}\n-----\n`, - }, {}, 'closed'); + }, { + closed: () => dispose(), + }); } function showMenu(ev: MouseEvent) { diff --git a/packages/frontend/src/pages/gallery/post.vue b/packages/frontend/src/pages/gallery/post.vue index f7f6251702..5a9c978dab 100644 --- a/packages/frontend/src/pages/gallery/post.vue +++ b/packages/frontend/src/pages/gallery/post.vue @@ -160,10 +160,12 @@ function reportAbuse() { const pageUrl = `${url}/gallery/${post.value.id}`; - os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { + const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { user: post.value.user, initialComment: `Post: ${pageUrl}\n-----\n`, - }, {}, 'closed'); + }, { + closed: () => dispose(), + }); } function showMenu(ev: MouseEvent) { diff --git a/packages/frontend/src/pages/page.vue b/packages/frontend/src/pages/page.vue index 40d76f86ed..cb1ce9b918 100644 --- a/packages/frontend/src/pages/page.vue +++ b/packages/frontend/src/pages/page.vue @@ -245,10 +245,12 @@ function reportAbuse() { const pageUrl = `${url}/@${props.username}/pages/${props.pageName}`; - os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { + const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), { user: page.value.user, initialComment: `Page: ${pageUrl}\n-----\n`, - }, {}, 'closed'); + }, { + closed: () => dispose(), + }); } function showMenu(ev: MouseEvent) {