mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-09 20:37:48 +00:00
21 lines
561 B
Vue
21 lines
561 B
Vue
<script setup>
|
|
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
|
|
import { $changeLocale, elementLocale, $i18nBundle } from '@/messages'
|
|
import { useTitle } from '@vueuse/core'
|
|
import { computed } from 'vue'
|
|
|
|
const globalConfigStore = useGlobalConfigStore()
|
|
$changeLocale(globalConfigStore.currentLocale)
|
|
const title = computed(() => $i18nBundle('common.label.title'))
|
|
useTitle(title)
|
|
</script>
|
|
|
|
<template>
|
|
<el-config-provider :locale="elementLocale.localeData">
|
|
<router-view />
|
|
</el-config-provider>
|
|
</template>
|
|
|
|
<style scoped>
|
|
</style>
|