hookehuyr

fix 切换导航栏路由可能报错问题

<!--
* @Date: 2024-09-26 13:42:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-11 17:11:01
* @LastEditTime: 2024-12-12 15:02:26
* @FilePath: /hager/src/components/common/hagerHeader.vue
* @Description: 文件描述
-->
......@@ -363,11 +363,13 @@ export default {
this.show = false;
},
goTo (path) { // 跳转页面
if (this.$route.path !== path) { // 不能重复点击当前页面
this.$router.push({
path,
});
}
setTimeout(() => {
if (this.$route.path !== path) { // 不能重复点击当前页面
this.$router.push({
path,
});
}
}, 100);
if (path.indexOf('/solution') === -1) { // 不统计解决方案页面
// TAG: 统计埋点
this.maEvent(`h5_${path.slice(1)}`);
......