弹窗关闭
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2026-04-11 11:11:48 +08:00
parent f2f59e9528
commit 7baac33d0d

View File

@@ -234,6 +234,10 @@
}); });
}); });
let searchHistory = JSON.parse(localStorage.getItem('searchHistory') || '[]'); let searchHistory = JSON.parse(localStorage.getItem('searchHistory') || '[]');
function renderHistory () function renderHistory ()
@@ -330,14 +334,14 @@
}); });
} }
// 鼠标移入导航项时,关闭购买下拉框 // 鼠标移入导航项时,关闭购买下拉框
const navItems = document.querySelectorAll('.nav-item'); const navItems = document.querySelectorAll('.header-nav-item');
navItems.forEach(item => navItems.forEach(item =>
{ {
item.addEventListener('mouseenter', () => item.addEventListener('mouseenter', () =>
{ {
if (buyDropdown) { console.log('122132')
buyDropdown.classList.remove('show'); buyDropdown.classList.remove('show');
}
}); });
}); });