增加前端格式检查配置

This commit is contained in:
yml2213
2026-06-08 06:40:33 +08:00
parent 79ea3a476c
commit 500f511185
150 changed files with 7254 additions and 4013 deletions
@@ -49,18 +49,22 @@ export function useChatSSE(scope: AuthScope, endpoint: string) {
connected.value = true
})
source.addEventListener('new_message', (e) => {
source.addEventListener('new_message', e => {
try {
const data = JSON.parse((e as MessageEvent).data) as ChatEvent
handlers.forEach(h => h(data))
} catch { /* ignore */ }
} catch {
/* ignore */
}
})
source.addEventListener('conversation_updated', (e) => {
source.addEventListener('conversation_updated', e => {
try {
const data = JSON.parse((e as MessageEvent).data) as ChatEvent
handlers.forEach(h => h(data))
} catch { /* ignore */ }
} catch {
/* ignore */
}
})
source.onerror = async () => {