fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user