diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts index 4288f080241..dfd354557b7 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -341,6 +341,7 @@ You are a master of problem optimization, adept at accurately inferring user int label: 'IntentNode', text: 'Match user questions with user-defined intent classifications', other: 'other', + error2: 'Repeated intent', placeholder: 'Please choose a classification option', classify: { label: 'Intent classify', diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index 6c5bcb0dad1..ed62cbb4aeb 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -341,6 +341,7 @@ export default { label: '意图识别', text: '将用户问题与用户预设的意图分类进行匹配', other: '其他', + error2: '意图重复', placeholder: '请选择分类项', classify: { label: '意图分类', diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index 632369caddb..617866b86df 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -334,6 +334,7 @@ export default { label: '意圖識別', text: '將用戶問題與用戶預設的意圖分類進行匹配', other: '其他', + error2: '意圖重複', placeholder: '請選擇分類項', classify: { label: '意圖分類', diff --git a/ui/src/workflow/nodes/intent-classify-node/index.ts b/ui/src/workflow/nodes/intent-classify-node/index.ts index 426e9085609..c7517a805fa 100644 --- a/ui/src/workflow/nodes/intent-classify-node/index.ts +++ b/ui/src/workflow/nodes/intent-classify-node/index.ts @@ -48,19 +48,20 @@ class IntentModel extends AppNodeModel { if (branch_condition_list) { - const FORM_ITEMS_HEIGHT = 382 // 上方表单占用高度 + const FORM_ITEMS_HEIGHT = 397 // 上方表单占用高度 for (let index = 0; index < branch_condition_list.length; index++) { const element = branch_condition_list[index] - const h = get_up_index_height(branch_condition_list, index) + anchors.push({ x: x + width / 2 - 10, y: showNode - ? y - height / 2 + FORM_ITEMS_HEIGHT + h + element.height / 2 + ? y - height / 2 + FORM_ITEMS_HEIGHT + index *41.3 : y - 15, id: `${id}_${element.id}_right`, type: 'right' }) + console.log(y - height / 2 + FORM_ITEMS_HEIGHT + 100/ 2) } } return anchors diff --git a/ui/src/workflow/nodes/intent-classify-node/index.vue b/ui/src/workflow/nodes/intent-classify-node/index.vue index 7a550ca84e5..a3f5ab7541f 100644 --- a/ui/src/workflow/nodes/intent-classify-node/index.vue +++ b/ui/src/workflow/nodes/intent-classify-node/index.vue @@ -90,10 +90,6 @@ />