fix: bugs

This commit is contained in:
qier222 2021-05-17 19:20:21 +08:00
parent 5b6619d1de
commit 6ce9055484
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
7 changed files with 10 additions and 33 deletions

View file

@ -46,7 +46,7 @@ export default {
};
},
computed: {
...mapState(['showLyrics', 'showLibraryDefault', 'player']),
...mapState(['showLyrics', 'settings', 'player']),
isAccountLoggedIn() {
return isAccountLoggedIn();
},
@ -69,7 +69,7 @@ export default {
},
},
created() {
this.showLibraryDefault && this.$router.push('/library');
this.settings.showLibraryDefault && this.$router.push('/library');
if (this.isElectron) ipcRenderer(this);
window.addEventListener('keydown', this.handleKeydown);
this.fetchData();