Skip to content

Commit dfd4176

Browse files
feat: 处理lint格式问题
1 parent 7dc5271 commit dfd4176

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/api/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export function fetchChatAPIProcessSSE(
112112

113113
try {
114114
const jsonData = JSON.parse(data)
115-
116115

117116
// 根据前面的 event 类型分发到不同的处理器
118117
if (jsonData.message) {
@@ -225,7 +224,7 @@ export function fetchLogin<T = any>(username: string, password: string, token?:
225224
export function fetchLogout<T = any>() {
226225
return post<T>({
227226
url: '/user-logout',
228-
data: { },
227+
data: {},
229228
})
230229
}
231230

@@ -440,7 +439,7 @@ export function fetchGetChatHistory<T = any>(roomId: number, lastId?: number, al
440439
export function fetchClearAllChat<T = any>() {
441440
return post<T>({
442441
url: '/chat-clear-all',
443-
data: { },
442+
data: {},
444443
})
445444
}
446445

src/views/chat/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import type { MessageReactive, UploadFileInfo } from 'naive-ui'
33
import html2canvas from 'html2canvas'
44
import {
5-
fetchChatAPIProcess,
65
fetchChatAPIProcessSSE,
76
fetchChatResponseoHistory,
87
fetchChatStopResponding,
@@ -387,7 +386,6 @@ async function onRegenerate(index: number) {
387386
accumulatedReasoning += delta.reasoning
388387
}
389388
390-
391389
updateChat(
392390
currentChatRoom.value!.roomId,
393391
index,

0 commit comments

Comments
 (0)