Files
Enterprise-Knowledge-Base/frontend
lyingbug 34d711d15f fix(frontend): unify think tag parsing between stream and history
Two consistency fixes for <think> tag parsing in index.vue:

1. Streaming path (line 579): Changed indexOf to lastIndexOf when
   splitting thinking content from answer, matching the history
   loading path. Prevents incorrect splitting if </think> appears
   multiple times (e.g., model discusses think tags in answer).

2. History loading path (line 274-281): Removed redundant split()
   call, now uses only lastIndexOf consistently. The split was
   creating an unnecessary intermediate array that could produce
   wrong results with multiple </think> occurrences.

Both paths now use identical logic: lastIndexOf('</think>') to find
the boundary, substring(0, index) for thinkContent, substring(index+8)
for answer content.
2026-03-25 22:08:29 +08:00
..
2025-08-05 15:08:07 +08:00
2025-08-05 15:08:07 +08:00
2025-08-05 15:08:07 +08:00
2025-08-05 15:08:07 +08:00
2025-08-05 15:08:07 +08:00