You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 lines
735 B

2 years ago
<script lang="ts" setup>
2 years ago
import 'dayjs/locale/zh-cn'
2 years ago
import { ConfigProvider } from 'ant-design-vue'
2 years ago
import { storeToRefs } from 'pinia'
2 years ago
import { AppProvider } from '@/components/Application'
import { useTitle } from '@/hooks/web/useTitle'
import { useLocale } from '@/locales/useLocale'
import { useAppStore } from '@/store/modules/app'
// support Multi-language
const { getAntdLocale } = useLocale()
const appStore = useAppStore()
2 years ago
const { themeConfig } = storeToRefs(appStore)
2 years ago
// Listening to page changes and dynamically changing site titles
useTitle()
</script>
<template>
2 years ago
<ConfigProvider :locale="getAntdLocale" :theme="themeConfig">
<AppProvider>
<RouterView />
</AppProvider>
</ConfigProvider>
</template>