关于移动端APP 键盘弹出来后,背景图片少一截的解决方法:
<template>
<div id="app" :style="{ height: bodyHeight + 'px' }">
<router-view :key="index" />
</div>
</template>
<script>
export default {
name: 'App',
data () {
return {}
},
mounted () {
this.bodyHeight = document.documentElement.clientHeight
},
</script>