mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
rewrite highlight track to use track.uniq_hash instead of trackid
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user