fix(client): fix some routings

This commit is contained in:
syuilo 2022-07-20 23:21:42 +09:00
parent 4761ff7444
commit 8261321dac
3 changed files with 22 additions and 2 deletions

View file

@ -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);