<template>
  <router-view>
    <template #default="{ Component, route }">
      <component
        v-if="route.meta.noKeepAlive"
        :is="Component"
        :key="route.fullPath"
      ></component>
      <keep-alive v-else>
        <component :is="Component" :key="route.meta?.key"></component>
      </keep-alive>
    </template>
  </router-view>
</template>
