<template>
  <router-view v-slot="scoped">
    {{
      (() => {
        routerView = scoped
      })()
    }}
    <keep-alive>
      <component :is="scoped.Component" v-if="$route.meta.keepAlive" :key="$route.path" />
    </keep-alive>
    <component :is="scoped.Component" v-if="!$route.meta.keepAlive" :key="$route.path" />
  </router-view>
</template>
