Skip to content

Commit bbab359

Browse files
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
2 parents 8381ca5 + deb3844 commit bbab359

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
MaxKB = Max Knowledge Base, it is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities. MaxKB is widely applied in scenarios such as intelligent customer service, corporate internal knowledge bases, academic research, and education.
1414

15-
- **Ready-to-Use**: Supports direct uploading of documents / automatic crawling of online documents, with features for automatic text splitting, vectorization, and RAG (Retrieval-Augmented Generation). This effectively reduces hallucinations in large models, providing a superior smart Q&A interaction experience.
15+
- **RAG Pipeline**: Supports direct uploading of documents / automatic crawling of online documents, with features for automatic text splitting, vectorization, and RAG (Retrieval-Augmented Generation). This effectively reduces hallucinations in large models, providing a superior smart Q&A interaction experience.
1616
- **Flexible Orchestration**: Equipped with a powerful workflow engine, function library and MCP tool-use, enabling the orchestration of AI processes to meet the needs of complex business scenarios.
1717
- **Seamless Integration**: Facilitates zero-coding rapid integration into third-party business systems, quickly equipping existing systems with intelligent Q&A capabilities to enhance user satisfaction.
1818
- **Model-Agnostic**: Supports various large models, including private models (such as DeepSeek, Llama, Qwen, etc.) and public models (like OpenAI, Claude, Gemini, etc.).

ui/src/workflow/nodes/condition-node/index.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
>
1111
<VueDraggable
1212
ref="el"
13-
v-model="form_data.branch"
13+
v-bind:modelValue="form_data.branch"
1414
:disabled="form_data.branch === 2"
1515
:filter="'.no-drag'"
1616
handle=".handle"
@@ -169,6 +169,7 @@ import { compareList } from '@/workflow/common/data'
169169
import { VueDraggable } from 'vue-draggable-plus'
170170
171171
const props = defineProps<{ nodeModel: any }>()
172+
172173
const form = {
173174
branch: [
174175
{
@@ -248,13 +249,12 @@ function onEnd(event?: any) {
248249
if (oldIndex === undefined || newIndex === undefined) return
249250
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
250251
if (oldIndex === list.length - 1 || newIndex === list.length - 1) {
251-
list[newIndex] = list[oldIndex]
252-
list[oldIndex] = clonedData
253-
set(props.nodeModel.properties.node_data, 'branch', list)
254252
return
255253
}
256-
list[newIndex].type = list[oldIndex].type
257-
list[oldIndex].type = clonedData.type // 恢复原始 type
254+
const newInstance = { ...list[oldIndex], type: list[newIndex].type, id: list[newIndex].id }
255+
const oldInstance = { ...list[newIndex], type: list[oldIndex].type, id: list[oldIndex].id }
256+
list[newIndex] = newInstance
257+
list[oldIndex] = oldInstance
258258
set(props.nodeModel.properties.node_data, 'branch', list)
259259
}
260260

0 commit comments

Comments
 (0)