<template>
  <div id="app">
    <keep-alive>
      <!--这里是会被缓存的组件-->
      <router-view v-if="this.$route.meta.keepAlive" />
    </keep-alive>
    <!--这里是不会被缓存的组件-->
    <router-view v-if="!this.$route.meta.keepAlive" />
  </div>
</template>
<script>
export default {
  mounted () {
  },
  methods: {
  }
}
</script>
<style>
html,
body,
#app {
  height: 100%;
  color: #333333;
  font-size: 0;
}
p {
  margin: 0;
}
</style>
