29 lines
666 B
Vue
29 lines
666 B
Vue
![]() |
<script setup lang="ts">
|
||
|
import { computed } from 'vue';
|
||
|
import { ConfigProvider } from 'ant-design-vue';
|
||
|
import { useAppStore } from './store/modules/app';
|
||
|
import { useThemeStore } from './store/modules/theme';
|
||
|
import { antdLocales } from './locales/antd';
|
||
|
|
||
|
defineOptions({
|
||
|
name: 'App'
|
||
|
});
|
||
|
|
||
|
const appStore = useAppStore();
|
||
|
const themeStore = useThemeStore();
|
||
|
|
||
|
const antdLocale = computed(() => {
|
||
|
return antdLocales[appStore.locale];
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<ConfigProvider :theme="themeStore.antdTheme" :locale="antdLocale">
|
||
|
<AppProvider>
|
||
|
<RouterView class="bg-layout" />
|
||
|
</AppProvider>
|
||
|
</ConfigProvider>
|
||
|
</template>
|
||
|
|
||
|
<style scoped></style>
|