Commit 832295a0 authored by 李晓兵's avatar 李晓兵

Update index.vue

parent 2fe8d52e
......@@ -24,7 +24,7 @@ export default {
data () {
return {
fontSize: Number(window.document.documentElement.style.fontSize.replace('px', '')),
winHeight: window.innerHeight,
winHeight: Number(window.localStorage.getItem('height')) || window.innerHeight,
winWidth: window.innerWidth,
height: 0,
startY: 0,
......@@ -134,8 +134,8 @@ export default {
const headerHeight = vm.getHeaderHeight()
const nextHeight = vm.getNextElementHeight()
let content = vm.$el
vm.height = (window.innerHeight - nextHeight - headerHeight)
content.style.height = (window.innerHeight - nextHeight - headerHeight) + 'px'
vm.height = (vm.winHeight - nextHeight - headerHeight)
content.style.height = (vm.winHeight - nextHeight - headerHeight) + 'px'
},
getKeyBoardHeight () {
let innerWidth = window.innerWidth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment