<template>
  <div v-if="mode === 'production'">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component
          v-if="!Component?.ref.i.isDeactivated"
          :key="r$route.name"
          :is="Component"
        ></component>
      </keep-alive>
    </router-view>
  </div>
  <router-view v-else v-slot="{ Component }">
    <keep-alive>
      <component
        v-if="!Component?.ref.i.isDeactivated"
        :key="$route.name"
        :is="Component"
      ></component>
    </keep-alive>
  </router-view>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'home',

  setup() {
    return {};
  },
});
</script>

<style lang="less">
.ant-pro-page-container-warp {
  display: none !important;
}
</style>
