国际化、主题处理

This commit is contained in:
Gary Fu
2023-12-16 21:05:00 +08:00
parent ffb209c494
commit 99629bc0a5
9 changed files with 184 additions and 49 deletions

View File

@@ -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>