diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index bee9bbd96..b853f3d1a 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -4,7 +4,8 @@ "Data Q&A": "Data Q&A", "Data Connections": "Data Sources", "Dashboard": "Dashboard", - "AI Model Configuration": "AI Model Configuration" + "AI Model Configuration": "AI Model Configuration", + "Details": "Details" }, "prompt": { "no_prompt_words": "No prompt words", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 5b8de27de..24ce89601 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -4,7 +4,8 @@ "Data Q&A": "스마트 데이터 조회", "Data Connections": "데이터 소스", "Dashboard": "대시보드", - "AI Model Configuration": "모델 구성" + "AI Model Configuration": "모델 구성", + "Details": "세부" }, "prompt": { "no_prompt_words": "프롬프트가 없습니다", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 4340956f5..292071113 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -4,7 +4,8 @@ "Data Q&A": "智能问数", "Data Connections": "数据源", "Dashboard": "仪表盘", - "AI Model Configuration": "模型配置" + "AI Model Configuration": "模型配置", + "Details": "详情" }, "prompt": { "no_prompt_words": "暂无提示词", diff --git a/frontend/src/views/system/prompt/index.vue b/frontend/src/views/system/prompt/index.vue index cd4435ffa..0de18e67a 100644 --- a/frontend/src/views/system/prompt/index.vue +++ b/frontend/src/views/system/prompt/index.vue @@ -21,7 +21,7 @@ interface Form { prompt: string | null specific_ds: boolean datasource_ids: number[] - datasource_name: string[] + datasource_names: string[] name: string | null } @@ -59,7 +59,7 @@ const defaultForm = { type: null, prompt: null, datasource_ids: [], - datasource_name: [], + datasource_names: [], name: null, specific_ds: false, } @@ -602,7 +602,7 @@ const typeChange = (val: any) => { {
- {{ pageForm.datasource_name.join() }} + {{ + pageForm.datasource_names.length + ? pageForm.datasource_names.join() + : t('training.all_data_sources') + }}