File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
ai-chat/component/answer-content Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
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'
2424const 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)
3737const form_setting_data = computed (() => {
Original file line number Diff line number Diff line change 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)
8080const editorRef = ref ()
You can’t perform that action at this time.
0 commit comments