diff --git a/src/App.vue b/src/App.vue index 7fb1ec10..db2bc82a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,7 @@ import 'dayjs/locale/zh-cn' import { ConfigProvider } from 'ant-design-vue' import { storeToRefs } from 'pinia' +import { computed } from 'vue' import { AppProvider } from '@/components/Application' import { useTitle } from '@/hooks/web/useTitle' import { useLocale } from '@/locales/useLocale' @@ -13,12 +14,14 @@ import { useAppStore } from '@/store/modules/app' const { getAntdLocale } = useLocale() const appStore = useAppStore() const { themeConfig } = storeToRefs(appStore) + +const componentSize = computed(() => appStore.getComponentSize) // Listening to page changes and dynamically changing site titles useTitle()