fix: bugs

This commit is contained in:
qier222 2021-06-09 20:53:33 +08:00
parent e54c606c6d
commit f3076f21b2
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
13 changed files with 32 additions and 36 deletions

View file

@ -2,7 +2,11 @@
<div id="app" :class="{ 'user-select-none': userSelectNone }">
<Scrollbar v-show="!showLyrics" ref="scrollbar" />
<Navbar v-show="showNavbar" ref="navbar" />
<main ref="main" @scroll="handleScroll">
<main
ref="main"
:style="{ overflow: enableScrolling ? 'auto' : 'hidden' }"
@scroll="handleScroll"
>
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
@ -50,7 +54,7 @@ export default {
};
},
computed: {
...mapState(['showLyrics', 'settings', 'player']),
...mapState(['showLyrics', 'settings', 'player', 'enableScrolling']),
isAccountLoggedIn() {
return isAccountLoggedIn();
},