diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index df8d29c0..0ddc5347 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -397,7 +397,9 @@ "low_version": "Compatible with lower versions", "ssl": "Enable SSL" }, - "sync_fields": "Sync Fields" + "sync_fields": "Sync Fields", + "sync_fields_success": "Sync fields successfully", + "sync_fields_failed": "Sync fields failed" }, "datasource": { "recommended_question": "Recommended Question", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index bb269ca1..19f521b6 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -397,7 +397,9 @@ "low_version": "낮은 버전 호환", "ssl": "SSL 활성화" }, - "sync_fields": "동기화된 테이블 구조" + "sync_fields": "동기화된 테이블 구조", + "sync_fields_success": "테이블 구조 동기화 성공", + "sync_fields_failed": "테이블 구조 동기화 실패" }, "datasource": { "recommended_question": "추천 질문", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 902b0642..b94cccd7 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -397,7 +397,9 @@ "low_version": "兼容低版本", "ssl": "启用 SSL" }, - "sync_fields": "同步表结构" + "sync_fields": "同步表结构", + "sync_fields_success": "同步表结构成功", + "sync_fields_failed": "同步表结构失败" }, "datasource": { "recommended_question": "推荐问题", diff --git a/frontend/src/i18n/zh-TW.json b/frontend/src/i18n/zh-TW.json index bd2aa57c..31f325e2 100644 --- a/frontend/src/i18n/zh-TW.json +++ b/frontend/src/i18n/zh-TW.json @@ -397,7 +397,9 @@ "low_version": "相容低版本", "ssl": "啟用 SSL" }, - "sync_fields": "同步表結構" + "sync_fields": "同步表結構", + "sync_fields_success": "同步表結構成功", + "sync_fields_failed": "同步表結構失敗" }, "datasource": { "recommended_question": "推薦問題", diff --git a/frontend/src/views/ds/DataTable.vue b/frontend/src/views/ds/DataTable.vue index 32778ecb..ba51310b 100644 --- a/frontend/src/views/ds/DataTable.vue +++ b/frontend/src/views/ds/DataTable.vue @@ -262,10 +262,12 @@ const syncFields = () => { .syncFields(currentTable.value.id) .then(() => { btnSelectClick('d') + ElMessage.success(t('ds.sync_fields_success')) loading.value = false }) .catch(() => { loading.value = false + ElMessage.warning(t('ds.sync_fields_failed')) }) } @@ -546,6 +548,7 @@ const btnSelectClick = (val: any) => {