mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复当前正在回答问题时可以点击换个答案 (#573)
This commit is contained in:
parent
d81bc993b4
commit
5fbdee8338
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue