Browse Source

Добавли keep-alive

Book Pauk 6 years ago
parent
commit
721b4f347b
1 changed files with 3 additions and 1 deletions
  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>