Fixed global state and scrolltotop
This commit is contained in:
parent
a1ae94792e
commit
ef9f257e23
13 changed files with 34 additions and 50 deletions
|
|
@ -24,8 +24,7 @@
|
|||
<a href="#">Filter</a>
|
||||
<div
|
||||
:class="{
|
||||
'uk-light uk-background-secondary':
|
||||
$store.state.globalSettings.darkMode
|
||||
'uk-light uk-background-secondary': $store.state.darkMode
|
||||
}"
|
||||
class="uk-navbar-dropdown"
|
||||
>
|
||||
|
|
@ -342,7 +341,10 @@ export default {
|
|||
|
||||
methods: {
|
||||
scrollToTop() {
|
||||
document.querySelector("#container-left").scrollTop = 0;
|
||||
const el = document.querySelector("#container-left");
|
||||
if (el) {
|
||||
el.scrollTop = 0;
|
||||
}
|
||||
},
|
||||
|
||||
updateCaptures: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue