This commit is contained in:
xuyue committed 2025-03-05 09:38:22 +08:00
1 parent 4cd73d9af8
commit 3716fec110
1 file changed
+6
+6
View File
@@ -96,9 +96,15 @@ function addButton() {
}) })
} }
function modifyLink() {
const links = $content.value!.querySelectorAll("a")
links.forEach((link) => (link.target = "_blank"))
}
async function render() { async function render() {
await getContent() await getContent()
addButton() addButton()
modifyLink()
} }
onMounted(render) onMounted(render)