panhui 3 lat temu
rodzic
commit
82afd63c73
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/views/Index.vue

+ 5 - 1
src/views/Index.vue

@@ -2,7 +2,7 @@
     <div class="index">
         <router-view v-slot="{ Component }">
             <keep-alive :include="keeps.value">
-                <component :is="Component" />
+                <component class="com" :is="Component" />
             </keep-alive>
         </router-view>
         <van-tabbar
@@ -86,6 +86,10 @@ export default {
 .index {
     padding-top: 0 !important;
 }
+
+.com{
+    min-height: calc(100vh - 50px);
+}
 .van-tabbar {
     background: #2c2c2e;