fix header menu submenu #827

This commit is contained in:
2020-07-29 19:03:59 +02:00
parent 91875258de
commit 79943af82e
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -12,8 +12,8 @@
@scroll.passive="onScrollCenter"
>
<div
class="wrapper"
ref="scrollablecenter"
class="wrapper"
>
<slot />
</div>
+8 -1
View File
@@ -6,7 +6,8 @@
<span v-if="!corpusLoaded" class="loading">Loading ...</span>
<router-link v-else to="/corpus">Corpus</router-link>
</li>
<li :class="{ opened: indexOpened }">
<li class="has-submenu" :class="{ opened: indexOpened }">
<!-- tabindex="-1" -->
<span
@click.prevent="onClickIndex"
@keyup.enter="onClickIndex"
@@ -44,6 +45,12 @@ export default {
corpusLoaded: state => state.Corpus.corpusLoaded
})
},
watch: {
$route (n, o) {
console.log('route changed')
this.indexOpened = false
}
},
methods: {
onClickIndex (e) {
console.log('onClickIndex')