1. 修改了跳转的错误
This commit is contained in:
@@ -522,6 +522,15 @@
|
||||
|
||||
// 加载模型列表
|
||||
loadModels();
|
||||
|
||||
// 设置侧边栏当前页高亮
|
||||
const currentPage = 'model-compare';
|
||||
document.querySelectorAll('.nav-link').forEach(link => {
|
||||
if (link.dataset.page === currentPage) {
|
||||
link.classList.add('active');
|
||||
link.classList.remove('hover:bg-[#001529]/20', 'transition-colors');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user