fix album and artist card search results responsiveness

This commit is contained in:
geoffrey45
2022-08-16 09:25:40 +03:00
parent e1c9cfa99b
commit 703b3cf240
10 changed files with 56 additions and 84 deletions
+1 -2
View File
@@ -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(() => {
+1 -1
View File
@@ -35,7 +35,7 @@ onMounted(() => {
playlist.fetchArtists(route.params.pid as string);
});
onUnmounted(() => playlist.reset());
onUnmounted(() => playlist.resetArtists());
</script>
<style lang="scss"></style>