mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
更新漏れ
This commit is contained in:
parent
13c23bba6e
commit
c9df19c475
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<GMisskeyGateway
|
<GMisskeyGateway
|
||||||
:path="path"
|
:action="actionConfig"
|
||||||
:branding="{
|
:branding="{
|
||||||
heading: $t('_goToMisskey.heading'),
|
heading: $t('_goToMisskey.heading'),
|
||||||
icon: WindowIco,
|
icon: WindowIco,
|
||||||
@ -24,15 +24,23 @@ useHead({
|
|||||||
const { meta, query } = useRoute();
|
const { meta, query } = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const path = computed<string>(() => {
|
// 遷移用パス
|
||||||
if (!query.path || query.path.length == 0) return '/';
|
const path = computed(() => {
|
||||||
|
if (!query.path || query.path.length == 0) return undefined;
|
||||||
|
|
||||||
if (Array.isArray(query.path)) {
|
if (Array.isArray(query.path)) {
|
||||||
return query.path[0] as string;
|
return query.path[0] as string;
|
||||||
} else {
|
} else {
|
||||||
return query.path;
|
return query.path;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
const actionConfig = computed(() => {
|
||||||
|
return {
|
||||||
|
type: 'link' as const,
|
||||||
|
path: path.value ?? '/',
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
meta.title = t('_goToMisskey.title');
|
meta.title = t('_goToMisskey.title');
|
||||||
meta.scrollButton = false;
|
meta.scrollButton = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user