diff --git a/ui/src/components/ai-chat/OperationButton.vue b/ui/src/components/ai-chat/OperationButton.vue
index 36e73b07c..a8ac52255 100644
--- a/ui/src/components/ai-chat/OperationButton.vue
+++ b/ui/src/components/ai-chat/OperationButton.vue
@@ -6,7 +6,7 @@
-
+
@@ -78,6 +78,9 @@ const props = defineProps({
type: String,
default: ''
},
+ chat_loading: {
+ type: Boolean
+ },
log: Boolean
})
diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue
index 50cf68275..c4522978e 100644
--- a/ui/src/components/ai-chat/index.vue
+++ b/ui/src/components/ai-chat/index.vue
@@ -131,6 +131,7 @@
:data="item"
:applicationId="appId"
:chatId="chartOpenId"
+ :chat_loading="loading"
@regeneration="regenerationChart(item)"
/>
@@ -541,7 +542,9 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean) {
function regenerationChart(item: chatType) {
inputValue.value = item.problem_text
- chatMessage(null, '', true)
+ if (!loading.value) {
+ chatMessage(null, '', true)
+ }
}
function getSourceDetail(row: any) {