| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,7 @@ export default { | |||
| 70 | 70 | let se = key; | |
| 71 | 71 | return se; | |
| 72 | 72 | }, | |
| 73 | - handleOpen (key) { | ||
| 73 | + handleOpen (key,indexPath) { | ||
| 74 | 74 | let href = window.location.href; // .split("/"); | |
| 75 | 75 | let newHref = href.replace('/demo', '/gallery'); | |
| 76 | 76 | const mapmode = this.$route.params.mapmode; | |
@@ -85,7 +85,7 @@ export default { | |||
| 85 | 85 | match = `/gallery/${mapmode}`; | |
| 86 | 86 | matchIndex = newHref.indexOf(match); | |
| 87 | 87 | baseUrl = newHref.slice(0, matchIndex + match.length); | |
| 88 | - window.location.href = baseUrl + `#${key}`; | ||
| 88 | + window.location.href = baseUrl + `#${indexPath[0]}` +`#${key}`; | ||
| 89 | 89 | } | |
| 90 | 90 | } else { | |
| 91 | 91 | match = `/gallery/${mapmode}`; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments