[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>
|
>{{state.chosen.length}}</span>
|
||||||
</q-tab>
|
</q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
hidden="true"
|
hidden
|
||||||
route="/spell"
|
route="/spell"
|
||||||
>
|
>
|
||||||
Spell
|
Spell
|
||||||
</q-tab>
|
</q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
hidden="true"
|
hidden
|
||||||
route="/about"
|
route="/about"
|
||||||
>
|
>
|
||||||
About
|
About
|
||||||
|
|
|
@ -34,9 +34,11 @@ export default {
|
||||||
},
|
},
|
||||||
props: [ 'spells' ],
|
props: [ 'spells' ],
|
||||||
mounted () {
|
mounted () {
|
||||||
|
if (this.state.lastSpell) {
|
||||||
let lastSpellPosition = this.$refs[this.state.lastSpell][0].$el.offsetTop
|
let lastSpellPosition = this.$refs[this.state.lastSpell][0].$el.offsetTop
|
||||||
let scrollingPageElement = document.getElementsByClassName('layout-view')[0]
|
let scrollingPageElement = document.getElementsByClassName('layout-view')[0]
|
||||||
scrollingPageElement.scrollTop = lastSpellPosition
|
scrollingPageElement.scrollTop = lastSpellPosition
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
filteredSpells () {
|
filteredSpells () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue