diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 868525a1..b8337346 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -5,14 +5,13 @@ import { darkTheme, NGlobalStyle } from 'naive-ui' import { zhCN } from 'naive-ui' import { computed, onMounted } from 'vue' import { useI18n } from 'vue-i18n' - -import Content from './views/Content.vue' -import Header from './views/Header.vue' import { useGlobalState } from './store' +import { useIsMobile } from './utils/composables' const { localeCache, themeSwitch, loading } = useGlobalState() const theme = computed(() => themeSwitch.value ? darkTheme : null) const localeConfig = computed(() => localeCache.value == 'zh' ? zhCN : null) +const isMobile = useIsMobile() const { locale } = useI18n({ useScope: 'global', @@ -39,14 +38,14 @@ onMounted(async () => { - - - + + +
- +