mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 21:14:22 +00:00
some minor progress
This commit is contained in:
@@ -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;
|
||||
} );
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user