vue-vben-admin/src/App.vue

29 lines
687 B
Vue
Raw Normal View History

2020-09-28 20:19:10 +08:00
<template>
<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({
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();
return { getAntdLocale };
2020-09-28 20:19:10 +08:00
},
});
</script>