src/layout/Header.vue
@@ -50,7 +50,7 @@ ]); const handleClick = ({ path, name }) => { if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在开发中'); if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...'); // 更新 leftList 的 active 状态 leftList.value.forEach(item => { item.active = item.path === path; @@ -60,7 +60,6 @@ rightList.value.forEach(item => { item.active = item.path === path; }); console.log(path); // 跳转到指定页面 router.push(path); }; @@ -153,6 +152,7 @@ text-align: center; font-style: normal; text-transform: none; cursor: pointer; } } }