Blame view

src/App.vue 578 Bytes
陈文彬 authored
1
<template>
2
  <ConfigProvider :locale="getAntdLocale">
vben authored
3
    <AppProvider>
vben authored
4
      <RouterView />
vben authored
5
    </AppProvider>
陈文彬 authored
6
7
8
  </ConfigProvider>
</template>
9
<script lang="ts" setup>
陈文彬 authored
10
  import { ConfigProvider } from 'ant-design-vue';
11
  import { AppProvider } from '/@/components/Application';
Vben authored
12
  import { useTitle } from '/@/hooks/web/useTitle';
vben authored
13
  import { useLocale } from '/@/locales/useLocale';
14
15
  import 'dayjs/locale/zh-cn';
16
17
  // support Multi-language
  const { getAntdLocale } = useLocale();
Vben authored
18
vben authored
19
  // Listening to page changes and dynamically changing site titles
20
  useTitle();
陈文彬 authored
21
</script>