load random covers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij
2023-09-27 16:51:44 +02:00
parent 02e13cb642
commit 7ebce51c2d
6 changed files with 17 additions and 7 deletions

View File

@@ -176,5 +176,10 @@ export default {
resolve();
});
});
},
loadRandomCovers(context, count) {
axios.get(context.rootGetters.server + "/api/albums/random/" + count, context.rootGetters.headers).then((res) => {
context.commit("setRandomCovers", res.data);
});
}
}