mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
fix link rendering
This commit is contained in:
@@ -265,12 +265,14 @@ function Article({ resource }: { resource: ResourceDetails }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
child.appendChild(div)
|
child.appendChild(div);
|
||||||
}
|
|
||||||
(child as HTMLParagraphElement).onclick = (e) => {
|
(child as HTMLParagraphElement).onclick = (e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
navigate(`/resources/${r.id}`)
|
navigate(`/resources/${r.id}`)
|
||||||
|
div.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user