feat: 为上线而修改细节
This commit is contained in:
+5
-1
@@ -65,6 +65,10 @@ jquery__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 新闻/行业资讯/更新日志的详情页(如 /hangye/1050.html)也高亮“新闻资讯”
|
||||
if (!targetName && (pathname.startsWith('/news/') || pathname.startsWith('/hangye/') || pathname.startsWith('/updatelog/'))) {
|
||||
targetName = 'news';
|
||||
}
|
||||
const targetNav = nav.filter(`[data-link="${targetName}"]`);
|
||||
if (targetNav.length > 0) {
|
||||
targetNav.addClass("header__nav--active");
|
||||
@@ -104,4 +108,4 @@ jquery__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ }
|
||||
]);
|
||||
//# sourceMappingURL=main.js.map?hash=b446ba1443bc4913f472
|
||||
//# sourceMappingURL=main.js.map
|
||||
Reference in New Issue
Block a user