Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-12 15:03:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e38b92bf21db0130b653ffb8cb8f219d89b5e59
7e38b92b
1 parent
a1bf0b61
fix 切换导航栏路由可能报错问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
src/components/common/hagerHeader.vue
src/components/common/hagerHeader.vue
View file @
7e38b92
<!--
* @Date: 2024-09-26 13:42:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-1
1 17:11:01
* @LastEditTime: 2024-12-1
2 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)}`);
...
...
Please
register
or
login
to post a comment