Skip to content

Commit 20920e6

Browse files
authored
fix: 修复对话日志中表单未被禁用 (#1764)
1 parent feb4371 commit 20920e6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
:chat_record_id="answer_text.chat_record_id"
1919
:child_node="answer_text.child_node"
2020
:runtime_node_id="answer_text.runtime_node_id"
21-
:loading="loading"
21+
:disabled="loading || type == 'log'"
2222
v-else-if="answer_text.content"
2323
:source="answer_text.content"
2424
:send-message="chatMessage"

ui/src/components/markdown/FormRander.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<DynamicsForm
4-
:disabled="is_submit"
4+
:disabled="is_submit || disabled"
55
label-position="top"
66
require-asterisk-position="right"
77
ref="dynamicsFormRef"
@@ -12,7 +12,7 @@
1212
></DynamicsForm>
1313
<el-button
1414
:type="is_submit ? 'info' : 'primary'"
15-
:disabled="is_submit || loading"
15+
:disabled="is_submit || disabled"
1616
@click="submit"
1717
>提交</el-button
1818
>
@@ -24,14 +24,14 @@ import DynamicsForm from '@/components/dynamics-form/index.vue'
2424
const props = withDefaults(
2525
defineProps<{
2626
form_setting: string
27-
loading?: boolean
27+
disabled?: boolean
2828
sendMessage?: (question: string, type: 'old' | 'new', other_params_data?: any) => void
2929
child_node?: any
3030
chat_record_id?: string
3131
runtime_node_id?: string
3232
}>(),
3333
{
34-
loading: false
34+
disabled: false
3535
}
3636
)
3737
const form_setting_data = computed(() => {

ui/src/components/markdown/MdRenderer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
:chat_record_id="chat_record_id"
2121
:runtime_node_id="runtime_node_id"
2222
:child_node="child_node"
23-
:loading="loading"
23+
:disabled="disabled"
2424
:send-message="sendMessage"
2525
v-else-if="item.type === 'form_rander'"
2626
:form_setting="item.content"
@@ -70,11 +70,11 @@ const props = withDefaults(
7070
child_node?: any
7171
chat_record_id?: string
7272
runtime_node_id?: string
73-
loading?: boolean
73+
disabled?: boolean
7474
}>(),
7575
{
7676
source: '',
77-
loading: false
77+
disabled: false
7878
}
7979
)
8080
const editorRef = ref()

0 commit comments

Comments
 (0)