Browse Source

perf: optimize page scrolling when setting fixedHeader

Pan 6 years ago
parent
commit
896962a5c5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/layout/components/AppMain.vue

+ 2 - 0
src/layout/components/AppMain.vue

@@ -27,5 +27,7 @@ export default {
27
 }
27
 }
28
 .fixed-header+.app-main {
28
 .fixed-header+.app-main {
29
   padding-top: 50px;
29
   padding-top: 50px;
30
+  height: 100vh;
31
+  overflow: auto;
30
 }
32
 }
31
 </style>
33
 </style>