修复主题按钮点击无反应:添加click事件监听
This commit is contained in:
@@ -319,6 +319,9 @@ else { setTheme('light'); }
|
|||||||
document.getElementById('drawerThemeBtn').addEventListener('click', function() {
|
document.getElementById('drawerThemeBtn').addEventListener('click', function() {
|
||||||
setTheme(htmlEl.getAttribute('data-theme') === 'dark' ? 'light' : 'dark');
|
setTheme(htmlEl.getAttribute('data-theme') === 'dark' ? 'light' : 'dark');
|
||||||
});
|
});
|
||||||
|
document.getElementById('themeBtn').addEventListener('click', function() {
|
||||||
|
setTheme(htmlEl.getAttribute('data-theme') === 'dark' ? 'light' : 'dark');
|
||||||
|
});
|
||||||
|
|
||||||
const wikiData = [
|
const wikiData = [
|
||||||
{ dir: "身份认证与安全", icon: "🔐", desc: "统一身份认证、IAM 选型、零信任安全", color: "pink",
|
{ dir: "身份认证与安全", icon: "🔐", desc: "统一身份认证、IAM 选型、零信任安全", color: "pink",
|
||||||
|
|||||||
Reference in New Issue
Block a user