chore: updates

This commit is contained in:
Tristan Yang
2023-08-01 18:20:00 +08:00
parent b9b62bc3be
commit 2150213a25
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,6 @@ export default function useStreaming() {
} else {
_token = resp.data.token;
}
// return;
}
// 开始初始化
const params: {
@@ -138,6 +137,7 @@ export default function useStreaming() {
// 断网了
if (!navigator.onLine) {
stopStreaming();
return;
}
const { readyState } = err.target as EventSource;
console.info("sse error", readyState, err);