Fix(AI):[#3609]点击热门词条时,需要卡1秒才能进入问答页面,改为点击后马上进入问答页面

This commit is contained in:
lifizer
2025-04-08 10:18:58 +08:00
parent 67c94d814c
commit e446b9e847
+19 -19
View File
@@ -156,28 +156,28 @@ export const chatMixins = {
handleLoginFailure() handleLoginFailure()
return return
} }
_this.initWebSocket(() => { const prompt = params.prompt
const prompt = params.prompt if (params.init !== 1) {
if (params.init !== 1) {
_this.chatMessageList.push({
prompt,
type: -1
})
}
_this.$nextTick(() => {
_this.scrollToBottomHandle()
})
_this.chatMessageList.push({ _this.chatMessageList.push({
content: '',
nodes: '',
isError: false,
showCursor: false,
conversationId: '',
prompt, prompt,
listQuestion: [], type: -1
type: -2
}) })
_this.loading = true }
_this.$nextTick(() => {
_this.scrollToBottomHandle()
})
_this.chatMessageList.push({
content: '',
nodes: '',
isError: false,
showCursor: false,
conversationId: '',
prompt,
listQuestion: [],
type: -2
})
_this.loading = true
_this.initWebSocket(() => {
_this.showCursor = false _this.showCursor = false
getSseConfigV1({ getSseConfigV1({
'chatNumber': _this.chatNumber, 'chatNumber': _this.chatNumber,