1. 修改了跳转的错误
This commit is contained in:
@@ -92,9 +92,9 @@
|
||||
<i class="fa fa-line-chart w-5 text-center"></i>
|
||||
<span class="ml-2">模型评测</span>
|
||||
</a>
|
||||
<a href="main.html?page=model-deploy" data-page="model-deploy" class="nav-link flex items-center px-4 py-2.5 hover:bg-[#001529]/20 transition-colors">
|
||||
<a href="main.html?page=model-compare" data-page="model-compare" class="nav-link flex items-center px-4 py-2.5 hover:bg-[#001529]/20 transition-colors">
|
||||
<i class="fa fa-server w-5 text-center"></i>
|
||||
<span class="ml-2">模型部署</span>
|
||||
<span class="ml-2">模型对比</span>
|
||||
</a>
|
||||
|
||||
<!-- 第二分区:资源管理 -->
|
||||
@@ -448,6 +448,15 @@
|
||||
|
||||
// 初始化单选框选中样式
|
||||
initRadioStyles();
|
||||
|
||||
// 设置侧边栏当前页高亮
|
||||
const currentPage = 'dataset-manage';
|
||||
document.querySelectorAll('.nav-link').forEach(link => {
|
||||
if (link.dataset.page === currentPage) {
|
||||
link.classList.add('active');
|
||||
link.classList.remove('hover:bg-[#001529]/20', 'transition-colors');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 加载数据集数据(编辑模式)
|
||||
|
||||
Reference in New Issue
Block a user