This commit is contained in:
@@ -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');
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user