Skip to content

Commit 7328b1b

Browse files
committed
fix(Custom prompt words): The title of the details page is incorrect
1 parent 8e29511 commit 7328b1b

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

frontend/src/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"Data Q&A": "Data Q&A",
55
"Data Connections": "Data Sources",
66
"Dashboard": "Dashboard",
7-
"AI Model Configuration": "AI Model Configuration"
7+
"AI Model Configuration": "AI Model Configuration",
8+
"Details": "Details"
89
},
910
"prompt": {
1011
"no_prompt_words": "No prompt words",

frontend/src/i18n/ko-KR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"Data Q&A": "스마트 데이터 조회",
55
"Data Connections": "데이터 소스",
66
"Dashboard": "대시보드",
7-
"AI Model Configuration": "모델 구성"
7+
"AI Model Configuration": "모델 구성",
8+
"Details": "세부"
89
},
910
"prompt": {
1011
"no_prompt_words": "프롬프트가 없습니다",

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"Data Q&A": "智能问数",
55
"Data Connections": "数据源",
66
"Dashboard": "仪表盘",
7-
"AI Model Configuration": "模型配置"
7+
"AI Model Configuration": "模型配置",
8+
"Details": "详情"
89
},
910
"prompt": {
1011
"no_prompt_words": "暂无提示词",

frontend/src/views/system/prompt/index.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Form {
2121
prompt: string | null
2222
specific_ds: boolean
2323
datasource_ids: number[]
24-
datasource_name: string[]
24+
datasource_names: string[]
2525
name: string | null
2626
}
2727
@@ -59,7 +59,7 @@ const defaultForm = {
5959
type: null,
6060
prompt: null,
6161
datasource_ids: [],
62-
datasource_name: [],
62+
datasource_names: [],
6363
name: null,
6464
specific_ds: false,
6565
}
@@ -602,7 +602,7 @@ const typeChange = (val: any) => {
602602
</el-drawer>
603603
<el-drawer
604604
v-model="rowInfoDialog"
605-
:title="$t('professional.professional_term_details')"
605+
:title="$t('menu.Details')"
606606
destroy-on-close
607607
size="600px"
608608
:before-close="onRowFormClose"
@@ -628,7 +628,11 @@ const typeChange = (val: any) => {
628628
</el-form-item>
629629
<el-form-item :label="t('ds.title')">
630630
<div class="content">
631-
{{ pageForm.datasource_name.join() }}
631+
{{
632+
pageForm.datasource_names.length
633+
? pageForm.datasource_names.join()
634+
: t('training.all_data_sources')
635+
}}
632636
</div>
633637
</el-form-item>
634638
</el-form>

0 commit comments

Comments
 (0)