Browse Source

不缓存

lilei 3 năm trước cách đây
mục cha
commit
13bdaf6b7f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/layouts/RouteView.vue

+ 2 - 2
src/layouts/RouteView.vue

@@ -26,8 +26,8 @@ export default {
     // if (!getters.multiTab && !meta.keepAlive) {
     //   return notKeep
     // }
-    return this.keepAlive || getters.multiTab || meta.keepAlive ? inKeep : notKeep
-    // return meta.keepAlive ? inKeep : notKeep
+    // return this.keepAlive || getters.multiTab || meta.keepAlive ? inKeep : notKeep
+    return meta.keepAlive ? inKeep : notKeep
   }
 }
 </script>