| | |
| | | <span class="flash_cursor"></span> |
| | | </template> |
| | | <template v-else> |
| | | <pre>{{ item.msg }}</pre> |
| | | <pre style="font-family: none;">{{ item.msg }}</pre> |
| | | </template> |
| | | </div> |
| | | <div class="chat-img" v-if="item.chatType == 1"> |
| | |
| | | chatList.value.push(chatMsg) |
| | | let chatGPT = { |
| | | headImg: headPortrait, |
| | | name: 'DeepSeek', |
| | | name: '小智', |
| | | time: new Date().toLocaleTimeString(), |
| | | msg: "", |
| | | chatType: 0, //信息类型,0文字,1图片 |
| | |
| | | } |
| | | chatList.value.push(replyMsg) |
| | | scrollBottom() |
| | | |
| | | loading.value = false |
| | | // 如果有查询关键字,则模拟流式输出 |
| | | if (route.query.keyWord) { |
| | | simulateStreamingOutput(replyMsg, route.query.keyWord) |