fix: 修复当前正在回答问题时可以点击换个答案 (#573)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2024-05-28 18:24:00 +08:00 committed by GitHub
parent d81bc993b4
commit 5fbdee8338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,7 @@
</div>
<div>
<el-tooltip effect="dark" content="换个答案" placement="top">
<el-button text @click="regeneration">
<el-button :disabled="chat_loading" text @click="regeneration">
<AppIcon iconName="VideoPlay"></AppIcon>
</el-button>
</el-tooltip>
@ -78,6 +78,9 @@ const props = defineProps({
type: String,
default: ''
},
chat_loading: {
type: Boolean
},
log: Boolean
})

View File

@ -131,6 +131,7 @@
:data="item"
:applicationId="appId"
:chatId="chartOpenId"
:chat_loading="loading"
@regeneration="regenerationChart(item)"
/>
</div>
@ -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) {