feat: Enhance chat UI and wiki page retrieval logic

- Updated the chat component to include a new class for handling sidebar collapse, improving layout responsiveness.
- Enhanced the wiki page retrieval logic to support multiple knowledge bases for the same slug, allowing for more comprehensive results.
- Introduced a mechanism to track ambiguous slugs across knowledge bases, improving clarity in search results.

These changes significantly improve the user experience in the chat interface and enhance the functionality of the wiki page retrieval system.
This commit is contained in:
wizardchen
2026-04-20 20:42:18 +08:00
parent bd5d70b5ae
commit 1d72a25e25
2 changed files with 135 additions and 69 deletions
+5 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="chat" :class="{ 'is-embedded': embeddedMode }">
<div class="chat" :class="{ 'is-embedded': embeddedMode, 'is-sidebar-collapsed': uiStore.sidebarCollapsed }">
<div ref="scrollContainer" class="chat_scroll_box" @scroll="handleScroll">
<div class="msg_list" :class="{ 'is-embedded': embeddedMode }">
<!-- 消息列表骨架屏 -->
@@ -1226,6 +1226,10 @@ onBeforeRouteUpdate((to, from, next) => {
max-width: calc(100vw - 260px);
min-width: 400px;
&.is-sidebar-collapsed {
max-width: calc(100vw - 60px);
}
&.is-embedded {
max-width: 100%;
min-width: 100%;