<template>
  <LocaleEnv>
    <RouterView v-slot="{ Component }">
      <KeepAlive>
        <component :is="Component" />
      </KeepAlive>
    </RouterView>
  </LocaleEnv>
</template>

<script setup lang="ts">
import LocaleEnv from '@/components/locale-env/index.vue'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
</script>
