From 8261321dacc79f7fbecc47e9cd9a73c4fa0f73f5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 20 Jul 2022 23:21:42 +0900 Subject: [PATCH] fix(client): fix some routings --- .../client/src/pages/settings/webhook.edit.vue | 6 +++++- packages/client/src/pages/settings/webhook.vue | 2 +- packages/client/src/router.ts | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/settings/webhook.edit.vue b/packages/client/src/pages/settings/webhook.edit.vue index 618250958..e36e1d754 100644 --- a/packages/client/src/pages/settings/webhook.edit.vue +++ b/packages/client/src/pages/settings/webhook.edit.vue @@ -43,8 +43,12 @@ import * as os from '@/os'; import { i18n } from '@/i18n'; import { definePageMetadata } from '@/scripts/page-metadata'; +const props = defineProps<{ + webhookId: string; +}>(); + const webhook = await os.api('i/webhooks/show', { - webhookId: new URLSearchParams(window.location.search).get('id'), + webhookId: props.webhookId, }); let name = $ref(webhook.name); diff --git a/packages/client/src/pages/settings/webhook.vue b/packages/client/src/pages/settings/webhook.vue index ef9b9b56f..868d273ce 100644 --- a/packages/client/src/pages/settings/webhook.vue +++ b/packages/client/src/pages/settings/webhook.vue @@ -9,7 +9,7 @@