fix web remote volume slider, #317, cant run yarn start

This commit is contained in:
vapormusic 2022-02-09 19:23:40 +07:00
parent 63b1293903
commit 7f0b2da0be
3 changed files with 21 additions and 7 deletions

View file

@ -293,7 +293,10 @@ const app = new Vue({
},
mainMenuVisibility(val) {
if (val) {
(this.chrome.userinfo.id) ? this.chrome.menuOpened = !this.chrome.menuOpened : false
(this.mk.isAuthorized) ? this.chrome.menuOpened = !this.chrome.menuOpened : false;
if (!this.mk.isAuthorized){
this.mk.authorize()
}
} else {
setTimeout(() => {
this.chrome.menuOpened = false