feat: 对网络请求的调整优化处理

This commit is contained in:
2025-07-22 22:33:27 +08:00
parent e6b9407e69
commit bad3b2987d
8 changed files with 99 additions and 121 deletions

View File

@@ -74,6 +74,7 @@
import OneFeelMK001 from '../module/OneFeelMK001.vue';
import request from '../../request/base/request';
import { agentChatStream } from '../../request/api/AgentChatStream';
// 导航栏相关
const statusBarHeight = ref(20);
@@ -225,7 +226,7 @@
}
// 2. 流式接收内容
request.getAIChatStream(args, (chunk) => {
agentChatStream(args, (chunk) => {
console.log('分段内容:', chunk)
if (chunk && chunk.content) {
// 收到内容,停止动画