UI improvements

This commit is contained in:
geoffrey45
2022-09-11 14:58:47 +03:00
parent a6819a01d6
commit 47fc7fd705
9 changed files with 34 additions and 47 deletions
+6 -2
View File
@@ -32,7 +32,7 @@ function scrollOnLoad() {
export default defineStore("search", () => {
// @ts-ignore
const query = ref("");
const debouncedQuery = useDebounce(query)
const debouncedQuery = useDebounce(query);
const { startLoading, stopLoading } = useLoaderStore();
const route = useRoute();
@@ -144,7 +144,11 @@ export default defineStore("search", () => {
artists.more = res.more;
})
.then(() => stopLoading())
.then(() => scrollOnLoad());
.then(() =>
setTimeout(() => {
scrollOnLoad();
}, 500)
);
}
watch(