Browse Source

修复了子路由模式下两个keepalive相互切换 keepalive失效的问题

main
pixel 4 years ago
parent
commit
ed49851167
  1. 15
      web/src/view/systemTools/index.vue

15
web/src/view/systemTools/index.vue

@ -1,12 +1,15 @@
<template>
<router-view></router-view>
<div>
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"></router-view>
</div>
</template>
<script>
export default {
name:"System",
}
name: "System",
};
</script>
<style lang="scss">
</style>
<style lang="scss"></style>
Loading…
Cancel
Save