We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb0f3c commit 9b648b4Copy full SHA for 9b648b4
website/src/views/layout/components/Sidebar/SidebarDemo.vue
@@ -70,7 +70,7 @@ export default {
70
let se = key;
71
return se;
72
},
73
- handleOpen (key) {
+ handleOpen (key,indexPath) {
74
let href = window.location.href; // .split("/");
75
let newHref = href.replace('/demo', '/gallery');
76
const mapmode = this.$route.params.mapmode;
@@ -85,7 +85,7 @@ export default {
85
match = `/gallery/${mapmode}`;
86
matchIndex = newHref.indexOf(match);
87
baseUrl = newHref.slice(0, matchIndex + match.length);
88
- window.location.href = baseUrl + `#${key}`;
+ window.location.href = baseUrl + `#${indexPath[0]}` +`#${key}`;
89
}
90
} else {
91
0 commit comments