2020-09-28 20:19:10 +08:00
|
|
|
<template>
|
2021-05-25 22:35:32 +08:00
|
|
|
<ConfigProvider :locale="getAntdLocale">
|
2020-12-07 21:17:24 +08:00
|
|
|
<AppProvider>
|
2021-02-17 22:07:22 +08:00
|
|
|
<RouterView />
|
2020-12-07 21:17:24 +08:00
|
|
|
</AppProvider>
|
2020-09-28 20:19:10 +08:00
|
|
|
</ConfigProvider>
|
|
|
|
</template>
|
|
|
|
|
2021-08-12 23:54:12 +08:00
|
|
|
<script lang="ts" setup>
|
2020-09-28 20:19:10 +08:00
|
|
|
import { ConfigProvider } from 'ant-design-vue';
|
2021-02-10 00:53:47 +08:00
|
|
|
import { AppProvider } from '/@/components/Application';
|
2021-03-27 01:11:22 +08:00
|
|
|
import { useTitle } from '/@/hooks/web/useTitle';
|
2021-01-09 23:28:52 +08:00
|
|
|
import { useLocale } from '/@/locales/useLocale';
|
2020-10-19 22:56:10 +08:00
|
|
|
|
2021-11-26 00:09:08 +08:00
|
|
|
import 'dayjs/locale/zh-cn';
|
2021-08-12 23:54:12 +08:00
|
|
|
// support Multi-language
|
|
|
|
const { getAntdLocale } = useLocale();
|
2021-03-27 01:11:22 +08:00
|
|
|
|
2021-08-24 22:41:48 +08:00
|
|
|
// Listening to page changes and dynamically changing site titles
|
2021-08-12 23:54:12 +08:00
|
|
|
useTitle();
|
2020-09-28 20:19:10 +08:00
|
|
|
</script>
|