diff --git a/ui/src/components/HyperlinkInlineView.vue b/ui/src/components/HyperlinkInlineView.vue
index 243d907..203ac94 100644
--- a/ui/src/components/HyperlinkInlineView.vue
+++ b/ui/src/components/HyperlinkInlineView.vue
@@ -1,7 +1,21 @@
@@ -11,6 +25,7 @@ defineProps(nodeViewProps);
:class="{ 'hyperlink-ring-1': selected }"
>
+import type { HyperlinkCard } from '@halo-dev/hyperlink-card';
import { nodeViewProps, NodeViewWrapper } from '@halo-dev/richtext-editor';
+import { ref, watch } from 'vue';
-defineProps(nodeViewProps);
+const props = defineProps(nodeViewProps);
+
+const cardRef = ref | null>();
+
+watch(
+ () => props.node.attrs.href,
+ (value) => {
+ if (value && cardRef.value) {
+ cardRef.value.href = value;
+ cardRef.value.fetchSiteData();
+ }
+ }
+);
@@ -11,6 +25,7 @@ defineProps(nodeViewProps);
:class="{ 'hyperlink-rounded-xl hyperlink-ring-1': selected }"
>