rewrite highlight track to use track.uniq_hash instead of trackid

This commit is contained in:
geoffrey45
2022-07-10 22:10:09 +03:00
parent 7e3243272f
commit e538b0d4d7
5 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ function removeHighlight(route: RouteLocationNormalized) {
}
router.afterEach((to, from) => {
const hid = to.query.highlight as string;
const h_hash = to.query.highlight as string;
if (hid) removeHighlight(to);
if (h_hash) removeHighlight(to);
if (isSameRoute(to, from)) return;
document.getElementById("acontent")?.scrollTo(0, 0);