feat: 添加加载保存语言的功能,优化语言管理逻辑

This commit is contained in:
2025-12-20 04:23:36 +07:00
parent 3774ac8a2a
commit 37ddeb1a07
2 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
const { initializeWallet } = useWalletStore();
const { locale } = useLanguage();
const { locale, loadSavedLanguage } = useLanguage();
loadSavedLanguage();
onMounted(() => {
initializeWallet();