some minor progress

This commit is contained in:
2023-10-12 13:55:50 +02:00
parent ab8d9de7af
commit 2d907f052b
4 changed files with 39 additions and 8 deletions

View File

@@ -36,11 +36,22 @@
return {
hasLoadedSongs: false,
songQueue: [],
loadedDirs: [],
}
},
methods: {
getLoadedDirs () {
},
loadSongs() {
fetch( 'http://localhost:8081/openSongs' )
fetch( 'http://localhost:8081/openSongs' ).then( res => {
if ( res.status === 200 ) {
res.json().then( json => {
this.hasLoadedSongs = true;
this.loadedDirs = json.data;
} );
}
} );
}
}
}