mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
fixed bug for re-generate response
This commit is contained in:
parent
1db20959e7
commit
aef3414928
@ -92,7 +92,7 @@
|
|||||||
停止生成
|
停止生成
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<el-button type="info" v-if="showReGenerate" @click="reGenerate" plain>
|
<el-button type="primary" v-if="showReGenerate" @click="reGenerate" plain>
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<RefreshRight/>
|
<RefreshRight/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
@ -145,7 +145,7 @@
|
|||||||
title="请输入口令继续访问"
|
title="请输入口令继续访问"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-input v-model="token" placeholder="在此输入口令" @keyup="loginInputKeyup">
|
<el-input v-model="token" placeholder="在此输入口令" type="password" @keyup="loginInputKeyup">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<el-icon class="el-input__icon">
|
<el-icon class="el-input__icon">
|
||||||
<Lock/>
|
<Lock/>
|
||||||
@ -310,7 +310,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
} else if (data.type === 'end') { // 消息接收完毕
|
} else if (data.type === 'end') { // 消息接收完毕
|
||||||
this.sending = false;
|
this.sending = false;
|
||||||
if (data['is_hello_mgs'] !== true) {
|
if (data['is_hello_msg'] !== true) {
|
||||||
this.showReGenerate = true;
|
this.showReGenerate = true;
|
||||||
}
|
}
|
||||||
this.showStopGenerate = false;
|
this.showStopGenerate = false;
|
||||||
@ -387,6 +387,8 @@ export default defineComponent({
|
|||||||
this.replyIcon = item.icon;
|
this.replyIcon = item.icon;
|
||||||
// 清空对话列表
|
// 清空对话列表
|
||||||
this.chatData = [];
|
this.chatData = [];
|
||||||
|
this.showStopGenerate = false;
|
||||||
|
this.showReGenerate = false;
|
||||||
this.connect();
|
this.connect();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user