fix: 修复当前正在回答问题时可以点击换个答案 (#573)
This commit is contained in:
parent
d81bc993b4
commit
5fbdee8338
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-tooltip effect="dark" content="换个答案" placement="top">
|
<el-tooltip effect="dark" content="换个答案" placement="top">
|
||||||
<el-button text @click="regeneration">
|
<el-button :disabled="chat_loading" text @click="regeneration">
|
||||||
<AppIcon iconName="VideoPlay"></AppIcon>
|
<AppIcon iconName="VideoPlay"></AppIcon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
@ -78,6 +78,9 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
chat_loading: {
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
log: Boolean
|
log: Boolean
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -131,6 +131,7 @@
|
|||||||
:data="item"
|
:data="item"
|
||||||
:applicationId="appId"
|
:applicationId="appId"
|
||||||
:chatId="chartOpenId"
|
:chatId="chartOpenId"
|
||||||
|
:chat_loading="loading"
|
||||||
@regeneration="regenerationChart(item)"
|
@regeneration="regenerationChart(item)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -541,7 +542,9 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean) {
|
|||||||
|
|
||||||
function regenerationChart(item: chatType) {
|
function regenerationChart(item: chatType) {
|
||||||
inputValue.value = item.problem_text
|
inputValue.value = item.problem_text
|
||||||
chatMessage(null, '', true)
|
if (!loading.value) {
|
||||||
|
chatMessage(null, '', true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSourceDetail(row: any) {
|
function getSourceDetail(row: any) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user