fix: 修复 Mermaid 渲染方法错误 - 将 mermaid.run() 改为 mermaid.init() - Mermaid 10.x 版本使用 init 方法触发渲染 - 修复 mermaid.run is not a function 错误

This commit is contained in:
2026-01-23 19:04:29 +08:00
parent a5521b5fb2
commit 48911f8af6

View File

@@ -219,9 +219,9 @@
}); });
// 手动触发渲染 // 手动触发渲染(使用 init 方法)
mermaid.run(); mermaid.init(undefined, document.querySelectorAll('.mermaid'));
}); });