mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
fix album and artist card search results responsiveness
This commit is contained in:
@@ -33,7 +33,7 @@ import { isSameRoute } from "@/composables/perks";
|
||||
const loader = useLoaderStore();
|
||||
const FStore = useFStore();
|
||||
|
||||
const scrollable = ref(null);
|
||||
const scrollable = ref<any>(null);
|
||||
|
||||
function getFolderName(route: RouteLocationNormalized) {
|
||||
const path = route.params.path as string;
|
||||
@@ -47,7 +47,6 @@ onBeforeRouteUpdate((to, from) => {
|
||||
FStore.fetchAll(to.params.path as string)
|
||||
|
||||
.then(() => {
|
||||
console.log("fetched");
|
||||
scrollable.value.scrollTop = 0;
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
@@ -35,7 +35,7 @@ onMounted(() => {
|
||||
playlist.fetchArtists(route.params.pid as string);
|
||||
});
|
||||
|
||||
onUnmounted(() => playlist.reset());
|
||||
onUnmounted(() => playlist.resetArtists());
|
||||
</script>
|
||||
|
||||
<style lang="scss"></style>
|
||||
|
||||
Reference in New Issue
Block a user