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>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
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
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
export default defineComponent({
|
2020-10-28 23:00:03 +08:00
|
|
|
name: 'App',
|
2020-12-07 21:17:24 +08:00
|
|
|
components: { ConfigProvider, AppProvider },
|
2020-09-28 20:19:10 +08:00
|
|
|
setup() {
|
2021-03-27 01:11:22 +08:00
|
|
|
useTitle();
|
|
|
|
|
|
|
|
// support Multi-language
|
|
|
|
const { getAntdLocale } = useLocale();
|
|
|
|
|
2021-05-25 22:35:32 +08:00
|
|
|
return { getAntdLocale };
|
2020-09-28 20:19:10 +08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|