<template>
  <div class="parentView">
    <keep-alive>
      <router-view v-if="!!keepAlive" style="height: 100%;width: 100%;box-sizing: border-box;" ref="child" />
    </keep-alive>
    <router-view v-if="!keepAlive" style="height: 100%;width: 100%;box-sizing: border-box;" ref="child" />
  </div>
</template>
<script>
export default {
  name: 'ParentView',
  computed: {
    keepAlive () {
      return this.$route.meta.keepAlive
    },
  }
}
</script>
