hookehuyr

fix 切换导航栏菜单可能报错问题

1 <!-- 1 <!--
2 * @Date: 2024-09-26 13:42:11 2 * @Date: 2024-09-26 13:42:11
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-12 14:53:44 4 + * @LastEditTime: 2024-12-12 15:01:03
5 * @FilePath: /hager/src/components/common/hagerHeader.vue 5 * @FilePath: /hager/src/components/common/hagerHeader.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -363,11 +363,13 @@ export default { ...@@ -363,11 +363,13 @@ export default {
363 this.show = false; 363 this.show = false;
364 }, 364 },
365 goTo (path) { // 跳转页面 365 goTo (path) { // 跳转页面
366 + setTimeout(() => {
366 if (this.$route.path !== path) { // 不能重复点击当前页面 367 if (this.$route.path !== path) { // 不能重复点击当前页面
367 this.$router.push({ 368 this.$router.push({
368 path, 369 path,
369 }); 370 });
370 } 371 }
372 + }, 100);
371 if (path.indexOf('/solution') === -1) { // 不统计解决方案页面 373 if (path.indexOf('/solution') === -1) { // 不统计解决方案页面
372 // TAG: 统计埋点 374 // TAG: 统计埋点
373 this.maEvent(`h5_${path.slice(1)}`); 375 this.maEvent(`h5_${path.slice(1)}`);
......