src/components/HeaderMenu.vue
@@ -8,7 +8,7 @@ </el-menu-item> <el-menu-item index="/">首页</el-menu-item> <el-menu-item index="/product">产品中心</el-menu-item> <el-menu-item index="/contact">联系我们</el-menu-item> <!-- <el-menu-item index="/contact">联系我们</el-menu-item> --> <el-menu-item index="/about">关于我们</el-menu-item> </el-menu> </div> @@ -37,7 +37,10 @@ // console.log('选中菜单:', index); if(index === '/logo'){ router.push('/'); }else{ }else if(index === '/about'){ router.push({path:'/',hash:'#third-other'}); } else{ router.push(index); }