mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
29 lines
687 B
Vue
29 lines
687 B
Vue
<template>
|
|
<ConfigProvider :locale="getAntdLocale">
|
|
<AppProvider>
|
|
<RouterView />
|
|
</AppProvider>
|
|
</ConfigProvider>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { ConfigProvider } from 'ant-design-vue';
|
|
import { AppProvider } from '/@/components/Application';
|
|
import { useTitle } from '/@/hooks/web/useTitle';
|
|
import { useLocale } from '/@/locales/useLocale';
|
|
|
|
export default defineComponent({
|
|
name: 'App',
|
|
components: { ConfigProvider, AppProvider },
|
|
setup() {
|
|
useTitle();
|
|
|
|
// support Multi-language
|
|
const { getAntdLocale } = useLocale();
|
|
|
|
return { getAntdLocale };
|
|
},
|
|
});
|
|
</script>
|