更新文档

This commit is contained in:
Super Manito
2025-04-04 13:15:39 +08:00
parent cf0fccaa92
commit 421e0a42aa
21 changed files with 489 additions and 342 deletions

View File

@@ -0,0 +1,15 @@
// 使用 mkdocs-material 与第三方 JavaScript 库集成的方法
document$.subscribe(function () {
// 重新初始化组件
ComponentSystem.reinitializeAll()
// 延迟初始化以确保DOM完全渲染
setTimeout(() => {
ComponentSystem.initAll()
}, 300)
})
// 首次加载事件
window.addEventListener('load', function () {
// 初始化所有组件
ComponentSystem.initAll()
})