diff --git a/ui/src/locales/lang/zh-CN/ai-chat.ts b/ui/src/locales/lang/zh-CN/ai-chat.ts index 322dd3d4db4..66994f40bef 100644 --- a/ui/src/locales/lang/zh-CN/ai-chat.ts +++ b/ui/src/locales/lang/zh-CN/ai-chat.ts @@ -5,7 +5,7 @@ export default { only20history: '仅显示最近 20 条对话', question_count: '条提问', exportRecords: '导出聊天记录', - chatId: '对话id', + chatId: '对话 ID', userInput: '用户输入', quote: '引用', download: '点击下载文件', diff --git a/ui/src/locales/lang/zh-Hant/ai-chat.ts b/ui/src/locales/lang/zh-Hant/ai-chat.ts index f08a81375be..99d136c078f 100644 --- a/ui/src/locales/lang/zh-Hant/ai-chat.ts +++ b/ui/src/locales/lang/zh-Hant/ai-chat.ts @@ -5,7 +5,7 @@ export default { only20history: '僅顯示最近 20 條對話', question_count: '條提問', exportRecords: '導出聊天記錄', - chatId: '對話ID', + chatId: '對話 ID', userInput: '用戶輸入', quote: '引用', download: '點擊下載文件', diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index eb662b4ef9b..f359b028b24 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -27,7 +27,9 @@
- {{ $t('views.applicationWorkflow.setting.addComponent') }} + + {{ $t('views.applicationWorkflow.setting.addComponent') }} + {{ $t('views.applicationWorkflow.setting.debug') }} {{ $t('common.save') }} - {{ $t('views.applicationWorkflow.setting.public') }} + + {{ $t('views.applicationWorkflow.setting.public') }} + @@ -77,12 +81,7 @@
-
+
@@ -268,10 +267,18 @@ async function publicHandle() { const node = res.node const err_message = res.errMessage if (typeof err_message == 'string') { - MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message.toLowerCase()) + MsgError( + res.node.properties?.stepName + + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + + err_message.toLowerCase() + ) } else { const keys = Object.keys(err_message) - MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message[keys[0]]?.[0]?.message.toLowerCase()) + MsgError( + node.properties?.stepName + + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + + err_message[keys[0]]?.[0]?.message.toLowerCase() + ) } }) } @@ -300,18 +307,24 @@ const clickShowDebug = () => { const node = res.node const err_message = res.errMessage if (typeof err_message == 'string') { - MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')},` + err_message) + MsgError( + res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')},` + err_message + ) } else { const keys = Object.keys(err_message) - MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')},` + err_message[keys[0]]?.[0]?.message) + MsgError( + node.properties?.stepName + + ` ${t('views.applicationWorkflow.node')},` + + err_message[keys[0]]?.[0]?.message + ) } }) } -function clickoutsideDebug(e: any) { - if (workflowMainRef.value && e && e.target && workflowMainRef.value.contains(e?.target)) { - showDebug.value = false - } -} +// function clickoutsideDebug(e: any) { +// if (workflowMainRef.value && e && e.target && workflowMainRef.value.contains(e?.target)) { +// showDebug.value = false +// } +// } function getGraphData() { return workflowRef.value?.getGraphData()