Skip to content

Commit 137d9d4

Browse files
committed
fix(Data Source): No corresponding prompts were found regarding the synchronized table structure.
1 parent 2d3bd3d commit 137d9d4

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

frontend/src/i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@
397397
"low_version": "Compatible with lower versions",
398398
"ssl": "Enable SSL"
399399
},
400-
"sync_fields": "Sync Fields"
400+
"sync_fields": "Sync Fields",
401+
"sync_fields_success": "Sync fields successfully",
402+
"sync_fields_failed": "Sync fields failed"
401403
},
402404
"datasource": {
403405
"recommended_question": "Recommended Question",

frontend/src/i18n/ko-KR.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@
397397
"low_version": "낮은 버전 호환",
398398
"ssl": "SSL 활성화"
399399
},
400-
"sync_fields": "동기화된 테이블 구조"
400+
"sync_fields": "동기화된 테이블 구조",
401+
"sync_fields_success": "테이블 구조 동기화 성공",
402+
"sync_fields_failed": "테이블 구조 동기화 실패"
401403
},
402404
"datasource": {
403405
"recommended_question": "추천 질문",

frontend/src/i18n/zh-CN.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@
397397
"low_version": "兼容低版本",
398398
"ssl": "启用 SSL"
399399
},
400-
"sync_fields": "同步表结构"
400+
"sync_fields": "同步表结构",
401+
"sync_fields_success": "同步表结构成功",
402+
"sync_fields_failed": "同步表结构失败"
401403
},
402404
"datasource": {
403405
"recommended_question": "推荐问题",

frontend/src/i18n/zh-TW.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@
397397
"low_version": "相容低版本",
398398
"ssl": "啟用 SSL"
399399
},
400-
"sync_fields": "同步表結構"
400+
"sync_fields": "同步表結構",
401+
"sync_fields_success": "同步表結構成功",
402+
"sync_fields_failed": "同步表結構失敗"
401403
},
402404
"datasource": {
403405
"recommended_question": "推薦問題",

frontend/src/views/ds/DataTable.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,12 @@ const syncFields = () => {
262262
.syncFields(currentTable.value.id)
263263
.then(() => {
264264
btnSelectClick('d')
265+
ElMessage.success(t('ds.sync_fields_success'))
265266
loading.value = false
266267
})
267268
.catch(() => {
268269
loading.value = false
270+
ElMessage.warning(t('ds.sync_fields_failed'))
269271
})
270272
}
271273
@@ -546,6 +548,7 @@ const btnSelectClick = (val: any) => {
546548
<el-button
547549
v-if="ds.type !== 'excel'"
548550
:icon="Refresh"
551+
secondary
549552
style="margin-left: 12px"
550553
@click="syncFields()"
551554
>

0 commit comments

Comments
 (0)