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