[FIX]: Undefined var errors
This commit is contained in:
parent
5c7e0adabb
commit
52f7a2eed2
2 changed files with 7 additions and 5 deletions
|
@ -24,13 +24,13 @@
|
|||
>{{state.chosen.length}}</span>
|
||||
</q-tab>
|
||||
<q-tab
|
||||
hidden="true"
|
||||
hidden
|
||||
route="/spell"
|
||||
>
|
||||
Spell
|
||||
</q-tab>
|
||||
<q-tab
|
||||
hidden="true"
|
||||
hidden
|
||||
route="/about"
|
||||
>
|
||||
About
|
||||
|
|
|
@ -34,9 +34,11 @@ export default {
|
|||
},
|
||||
props: [ 'spells' ],
|
||||
mounted () {
|
||||
if (this.state.lastSpell) {
|
||||
let lastSpellPosition = this.$refs[this.state.lastSpell][0].$el.offsetTop
|
||||
let scrollingPageElement = document.getElementsByClassName('layout-view')[0]
|
||||
scrollingPageElement.scrollTop = lastSpellPosition
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
filteredSpells () {
|
||||
|
|
Loading…
Add table
Reference in a new issue