<router-view />下面增加一个<div style="height: 5rem;"></div>
参考
<template> <div id="app"> <router-view /> <div style="height: 5rem;"></div> </div> </template> <script> export default { name: 'App' } </script> <style lang="less"> .size { 100%; height: 100%; } #html, #body { .size; overflow: hidden; margin: 0; padding: 0; } #app { .size; } </style>