|
|
@ -4,6 +4,7 @@ import 'dayjs/locale/zh-cn' |
|
|
|
import { ConfigProvider } from 'ant-design-vue' |
|
|
|
import { ConfigProvider } from 'ant-design-vue' |
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { computed } from 'vue' |
|
|
|
import { AppProvider } from '@/components/Application' |
|
|
|
import { AppProvider } from '@/components/Application' |
|
|
|
import { useTitle } from '@/hooks/web/useTitle' |
|
|
|
import { useTitle } from '@/hooks/web/useTitle' |
|
|
|
import { useLocale } from '@/locales/useLocale' |
|
|
|
import { useLocale } from '@/locales/useLocale' |
|
|
@ -13,12 +14,14 @@ import { useAppStore } from '@/store/modules/app' |
|
|
|
const { getAntdLocale } = useLocale() |
|
|
|
const { getAntdLocale } = useLocale() |
|
|
|
const appStore = useAppStore() |
|
|
|
const appStore = useAppStore() |
|
|
|
const { themeConfig } = storeToRefs(appStore) |
|
|
|
const { themeConfig } = storeToRefs(appStore) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const componentSize = computed(() => appStore.getComponentSize) |
|
|
|
// Listening to page changes and dynamically changing site titles |
|
|
|
// Listening to page changes and dynamically changing site titles |
|
|
|
useTitle() |
|
|
|
useTitle() |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<ConfigProvider :locale="getAntdLocale" :theme="themeConfig"> |
|
|
|
<ConfigProvider :locale="getAntdLocale" :theme="themeConfig" :component-size="componentSize"> |
|
|
|
<AppProvider> |
|
|
|
<AppProvider> |
|
|
|
<RouterView /> |
|
|
|
<RouterView /> |
|
|
|
</AppProvider> |
|
|
|
</AppProvider> |
|
|
|