更新文档

This commit is contained in:
Super Manito
2025-04-09 02:59:14 +08:00
parent 3422a2c108
commit c5ff4bfc4f
5 changed files with 99 additions and 110 deletions

View File

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