fix(frontend): URLプレビューのto/hrefがない問題を修正

Fix of 9ae577871b (diff-cfa02e203bdbd03dbf312a889f009ca7f9ebd8376334ebd74c4961b716b22d93)
This commit is contained in:
tamaina 2024-03-22 08:54:34 +09:00
parent 831c74a25b
commit 40bb6069ec

View file

@ -110,6 +110,7 @@ const MOBILE_THRESHOLD = 500;
const isMobile = ref(deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD);
const self = props.url.startsWith(local);
const attr = self ? 'to' : 'href';
const target = self ? null : '_blank';
const fetching = ref(true);
const title = ref<string | null>(null);