|
@@ -99,23 +99,29 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
mounted () {
|
|
|
+ console.log(window.innerHeight, 'mounted')
|
|
|
this.tabs = this.directTabs
|
|
|
this.getPageMeta()
|
|
|
this.setpageH()
|
|
|
const _this = this
|
|
|
window.onresize = () => {
|
|
|
return (() => {
|
|
|
- _this.$store.dispatch('SetWinHeight', window.innerHeight)
|
|
|
_this.setpageH()
|
|
|
})()
|
|
|
}
|
|
|
},
|
|
|
+ activated () {
|
|
|
+ this.setpageH()
|
|
|
+ },
|
|
|
updated () {
|
|
|
this.getPageMeta()
|
|
|
},
|
|
|
methods: {
|
|
|
setpageH () {
|
|
|
- this.pageHeight = window.innerHeight - 85
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$store.dispatch('SetWinHeight', window.innerHeight)
|
|
|
+ this.pageHeight = window.innerHeight - 85
|
|
|
+ })
|
|
|
},
|
|
|
getPageMeta () {
|
|
|
// eslint-disable-next-line
|