|
@@ -1807,7 +1807,7 @@ const updateCollapsedState = () => {
|
|
|
);
|
|
|
console.log(response);
|
|
|
if (response.data && response.data.status === 200) {
|
|
|
- knowledgeResults.value = response.data.data.data.results || [];
|
|
|
+ knowledgeResults.value = response.data.data.data || [];
|
|
|
knowledgeTotal.value = response.data.data.data.total || 0;
|
|
|
}
|
|
|
} catch (error) {
|
|
@@ -4020,7 +4020,6 @@ button,
|
|
|
padding: 8px 12px;
|
|
|
background: var(--secondary-bg);
|
|
|
border-radius: 8px;
|
|
|
- margin-bottom: 8px;
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
&.compact {
|
|
@@ -5263,4 +5262,67 @@ button,
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/* 移动端样式调整 */
|
|
|
+@media screen and (max-width: 768px) {
|
|
|
+ .layout {
|
|
|
+ height: 100vh; /* 使用视口高度 */
|
|
|
+ overflow: hidden; /* 防止页面滚动 */
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .header {
|
|
|
+ flex-shrink: 0; /* 防止header被压缩 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .chat {
|
|
|
+ flex: 1; /* 占据剩余空间 */
|
|
|
+ height: calc(100vh - 60px); /* 减去header高度 */
|
|
|
+ overflow-y: auto; /* 内容过多时在chat区域内滚动 */
|
|
|
+ -webkit-overflow-scrolling: touch; /* 优化iOS滚动 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .message-list {
|
|
|
+ height: calc(100% - 120px); /* 减去输入框高度 */
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .input-wrapper {
|
|
|
+ position: sticky;
|
|
|
+ bottom: 0;
|
|
|
+ background: var(--primary-bg);
|
|
|
+ padding: 10px;
|
|
|
+ border-top: 1px solid var(--border-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ .resize-handle {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right_menu {
|
|
|
+ width: 100% !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/* PC端样式保持不变 */
|
|
|
+@media screen and (min-width: 769px) {
|
|
|
+ .layout {
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chat {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .message-list {
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</style>
|