mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
国际化、主题处理
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
<script setup>
|
||||
import { useGlobalConfigStore } from '@/stores/globalConfig'
|
||||
import { $changeLocale, elementLocale } from '@/languages/MessagesConfig'
|
||||
|
||||
const globalConfigStore = useGlobalConfigStore()
|
||||
$changeLocale(globalConfigStore.currentLocale)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-config-provider :locale="$currentLocale.localeData">
|
||||
<el-config-provider :locale="elementLocale.localeData">
|
||||
<router-view />
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user