App.vue 330 B

123456789101112131415
  1. <template>
  2. <a-config-provider :locale="locale">
  3. <router-view />
  4. </a-config-provider>
  5. </template>
  6. <script setup name="App">
  7. import i18n from '@/locales'
  8. import { globalStore } from '@/store'
  9. const store = globalStore()
  10. store.initTheme()
  11. const locale = i18n.global.messages.value[i18n.global.locale.value].lang
  12. </script>