This commit is contained in:
tangly1024.com
2023-08-07 18:25:02 +08:00
parent cfab52c569
commit 2b7ef74edd

View File

@@ -140,8 +140,10 @@ const renderMermaid = async() => {
}
if (needLoad) {
loadExternalResource(BLOG.MERMAID_CDN, 'js').then(url => {
const mermaid = window.mermaid
mermaid.contentLoaded()
setTimeout(() => {
const mermaid = window.mermaid
mermaid?.contentLoaded()
}, 100)
})
}
}