原文: https://blog.csdn.net/fairyier/article/details/80990215
<div class="zy-main">
<el-scrollbar>
<!--以下是要滚动的内容-->
<div class="zy-main__box">
<transition name="move" mode="out-in">
<router-view></router-view>
</transition>
</div>
</el-scrollbar>
</div>
.zy-main {
height: 100%;
overflow: hidden;
}
.el-scrollbar{
height: 100%;
}
.el-scrollbar__wrap{
overflow: scroll;
overflow-x:auto
}