Ver Fonte

Добавли keep-alive

Book Pauk há 6 anos atrás
pai
commit
721b4f347b
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      client/components/CardIndex/CardIndex.vue

+ 3 - 1
client/components/CardIndex/CardIndex.vue

@@ -5,7 +5,9 @@
             <el-tab-pane label="Автор"></el-tab-pane>
             <el-tab-pane label="Книга"></el-tab-pane>
             <el-tab-pane label="История"></el-tab-pane>
-            <router-view></router-view>
+            <keep-alive>
+                <router-view></router-view>
+            </keep-alive>
         </el-tabs>
     </el-container>
 </template>