some bug fixes

- watch route params instead of route object in folderview
- move to script setup on album view
- use album as a reactive object instead of refs
- use axios instead of fetch to get album data
- improve clickable areas on songItem
- move album requests to POST
This commit is contained in:
geoffrey45
2022-03-01 19:46:37 +03:00
parent 8459310258
commit 6efbb47166
17 changed files with 229 additions and 183 deletions
+8 -5
View File
@@ -101,13 +101,16 @@ export default {
getDirData(path.value);
watch(route, (new_route) => {
path.value = new_route.params.path;
watch(
() => route.params,
() => {
path.value = route.params.path;
if (!path.value) return;
if (!path.value) return;
getDirData(path.value);
});
getDirData(path.value);
}
);
});
function updateQueryString(value) {