✨ Add i18n support

This commit is contained in:
landaiqing committed 2025-04-28 12:41:18 +08:00
1 parent 0d3df25a94
commit d7a848e7ad
7 files changed
+140 -16

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
import {defineStore} from 'pinia';
import {ref, watch, inject} from 'vue';
import {ref, watch} from 'vue';
import {useDebounceFn} from '@vueuse/core';
import {
GetEditorConfig,
@@ -174,8 +174,8 @@ export const useConfigStore = defineStore('config', () => {
// 重置为默认配置
async function resetToDefaults() {
try {
await ResetToDefault();
await loadConfigFromBackend();
await ResetToDefault();
await loadConfigFromBackend();
logStore.info(t('config.resetSuccess'));
} catch (error) {
console.error('Failed to reset configuration:', error);