mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Workflow knowledge base import button error (#4429)
This commit is contained in:
parent
ac9bb0d288
commit
9539082092
|
|
@ -43,7 +43,7 @@
|
|||
{{ $t('views.document.buttons.next') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : true"
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
|
||||
@click="upload"
|
||||
type="primary"
|
||||
:disabled="loading"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
{{ $t('views.document.buttons.next') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : true"
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
|
||||
@click="upload"
|
||||
type="primary"
|
||||
:loading="loading"
|
||||
|
|
@ -133,14 +133,14 @@ const permissionPrecise = computed(() => {
|
|||
const upload = () => {
|
||||
if (permissionPrecise.value.doc_create(id)) {
|
||||
ActionRef.value.validate().then(() => {
|
||||
form_data.value[active.value] = ActionRef.value.get_data()
|
||||
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
|
||||
.workflowAction(id, form_data.value, loading)
|
||||
.then((ok: any) => {
|
||||
action_id.value = ok.data.id
|
||||
active.value = 'result'
|
||||
})
|
||||
})
|
||||
form_data.value[active.value] = ActionRef.value.get_data()
|
||||
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
|
||||
.workflowAction(id, form_data.value, loading)
|
||||
.then((ok: any) => {
|
||||
action_id.value = ok.data.id
|
||||
active.value = 'result'
|
||||
})
|
||||
})
|
||||
} else {
|
||||
MsgError(t('views.application.tip.noDocPermission'))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue