<template>
  <div id="app" class="app">
    <keep-alive>
      <router-view :key="$route.name" v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <router-view :key="$route.name" v-if="!$route.meta.keepAlive"/>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="stylus" scoped>
@import './style/mixin'
.app
  width 100%
  height 100%
</style>
