Skip to content

Commit 9b648b4

Browse files
【左侧菜单栏跳转细节修改】
1 parent aeb0f3c commit 9b648b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/views/layout/components/Sidebar/SidebarDemo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
let se = key;
7171
return se;
7272
},
73-
handleOpen (key) {
73+
handleOpen (key,indexPath) {
7474
let href = window.location.href; // .split("/");
7575
let newHref = href.replace('/demo', '/gallery');
7676
const mapmode = this.$route.params.mapmode;
@@ -85,7 +85,7 @@ export default {
8585
match = `/gallery/${mapmode}`;
8686
matchIndex = newHref.indexOf(match);
8787
baseUrl = newHref.slice(0, matchIndex + match.length);
88-
window.location.href = baseUrl + `#${key}`;
88+
window.location.href = baseUrl + `#${indexPath[0]}` +`#${key}`;
8989
}
9090
} else {
9191
match = `/gallery/${mapmode}`;

0 commit comments

Comments
 (0)