Skip to content

Commit 9539082

Browse files
authored
fix: Workflow knowledge base import button error (#4429)
1 parent ac9bb0d commit 9539082

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ui/src/views/document/ImportWorkflowDocument.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{{ $t('views.document.buttons.next') }}
4444
</el-button>
4545
<el-button
46-
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : true"
46+
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
4747
@click="upload"
4848
type="primary"
4949
:disabled="loading"

ui/src/views/knowledge-workflow/component/DebugDrawer.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{{ $t('views.document.buttons.next') }}
3939
</el-button>
4040
<el-button
41-
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : true"
41+
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
4242
@click="upload"
4343
type="primary"
4444
:loading="loading"
@@ -133,14 +133,14 @@ const permissionPrecise = computed(() => {
133133
const upload = () => {
134134
if (permissionPrecise.value.doc_create(id)) {
135135
ActionRef.value.validate().then(() => {
136-
form_data.value[active.value] = ActionRef.value.get_data()
137-
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
138-
.workflowAction(id, form_data.value, loading)
139-
.then((ok: any) => {
140-
action_id.value = ok.data.id
141-
active.value = 'result'
142-
})
143-
})
136+
form_data.value[active.value] = ActionRef.value.get_data()
137+
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
138+
.workflowAction(id, form_data.value, loading)
139+
.then((ok: any) => {
140+
action_id.value = ok.data.id
141+
active.value = 'result'
142+
})
143+
})
144144
} else {
145145
MsgError(t('views.application.tip.noDocPermission'))
146146
}

0 commit comments

Comments
 (0)