修改变量重名
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
This commit is contained in:
@@ -249,14 +249,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const tabItems = document.querySelectorAll('.header-tab-item');
|
const tabItems1 = document.querySelectorAll('.header-tab-item');
|
||||||
const tabContents = document.querySelectorAll('.header-tab-content');
|
const tabContents = document.querySelectorAll('.header-tab-content');
|
||||||
|
|
||||||
tabItems.forEach(tab =>
|
tabItems1.forEach(tab =>
|
||||||
{
|
{
|
||||||
tab.addEventListener('mouseenter', () =>
|
tab.addEventListener('mouseenter', () =>
|
||||||
{
|
{
|
||||||
tabItems.forEach(item => item.classList.remove('active'));
|
tabItems1.forEach(item => item.classList.remove('active'));
|
||||||
tab.classList.add('active');
|
tab.classList.add('active');
|
||||||
const tabId = tab.getAttribute('data-tab');
|
const tabId = tab.getAttribute('data-tab');
|
||||||
tabContents.forEach(content =>
|
tabContents.forEach(content =>
|
||||||
|
|||||||
Reference in New Issue
Block a user