Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/Assistant/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function onStopStreaming() {
<Transition name="slide">
<div
v-if="isOpen"
class="h-full shrink-0 overflow-hidden"
class="h-screen sticky top-0 shrink-0 overflow-hidden"
>
<UDashboardSidebar
id="assistant"
Expand Down
49 changes: 48 additions & 1 deletion app/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,58 @@
<script setup lang="ts">
const route = useRoute()
const nuxtApp = useNuxtApp()

// Handle scroll reset on page navigation finish
nuxtApp.hook('page:finish', () => {
nextTick(() => {
// Check if there is a hash
if (route.hash) {
const el = document.querySelector(route.hash)
if (el) {
el.scrollIntoView({ behavior: 'smooth' })
}
} else {
// Reset scroll to top if no hash
const el = document.getElementById('dashboard-panel-main')
if (el) {
el.scrollTop = 0
}
}
})
})

watch(() => route.hash, (hash) => {
if (hash) {
nextTick(() => {
const el = document.querySelector(hash)
if (el) {
el.scrollIntoView({ behavior: 'smooth' })
}
})
}
})

onMounted(() => {
if (route.hash) {
nextTick(() => {
const el = document.querySelector(route.hash)
if (el) {
el.scrollIntoView({ behavior: 'smooth' })
}
})
}
})
</script>

<template>
<UDashboardGroup
:persistent="false"
unit="px"
class="h-screen overflow-hidden"
>
<UDashboardPanel
id="main"
class="overflow-y-auto scrollbar-hide"
class="h-full overflow-y-auto scrollbar-hide "
>
<slot />
</UDashboardPanel>
Expand Down
2 changes: 1 addition & 1 deletion content/cn/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ nav:
- "(ri:search-2-line) 检索记忆": api_docs/core/search_memory.md
- "(ri:file-list-line) 获取记忆": api_docs/core/get_memory.md
- "(ri:delete-bin-line) 删除记忆": api_docs/core/delete_memory.md
- "(ri:feedback-line) 添加反馈": api_docs/message/add_feedback.md

- "(ri:chat-1-line) 消息":
- "(ri:file-list-line) 获取消息": api_docs/message/get_message.md
Expand All @@ -111,7 +112,6 @@ nav:
- "(ri:file-add-line) 添加知识库文档": api_docs/knowledge/add_kb_doc.md
- "(ri:file-search-line) 获取知识库文档": api_docs/knowledge/get_kb_doc.md
- "(ri:file-reduce-line) 删除知识库文档": api_docs/knowledge/delete_kb_doc.md
- "(ri:feedback-line) 添加反馈": api_docs/message/add_feedback.md

- "(ri:customer-service-line) 帮助与支持":
- "(ri:error-warning-line) 错误码": api_docs/help/error_codes.md
Expand Down
2 changes: 1 addition & 1 deletion content/en/api_docs/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@
"items": {
"type": "string"
},
"description": "Specifies the scope of knowledge bases accessible for the current search. Defaults to empty, meaning no knowledge bases are searched.Pass specific Knowledgebase IDs to search within that designated repository; pass "all" to search across all associated knowledgebases within the project."
"description": "Specifies the scope of knowledge bases accessible for the current search. Defaults to empty, meaning no knowledge bases are searched.Pass specific Knowledgebase IDs to search within that designated repository; pass \"all\" to search across all associated knowledgebases within the project."
},
"memory_limit_number": {
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion content/en/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ nav:
- "(ri:search-2-line) Search Memory": api_docs/core/search_memory.md
- "(ri:file-list-line) Get Memory": api_docs/core/get_memory.md
- "(ri:delete-bin-line) Delete Memory": api_docs/core/delete_memory.md
- "(ri:feedback-line) Add Feedback": api_docs/message/add_feedback.md

- "(ri:chat-1-line) Messages":
- "(ri:file-list-line) Get Message": api_docs/message/get_message.md
Expand All @@ -111,7 +112,6 @@ nav:
- "(ri:file-add-line) Create Knowledgebase File": api_docs/knowledge/add_kb_doc.md
- "(ri:file-search-line) Get Knowledgebase File": api_docs/knowledge/get_kb_doc.md
- "(ri:file-reduce-line) Delete Knowledgebase File": api_docs/knowledge/delete_kb_doc.md
- "(ri:feedback-line) Add Feedback": api_docs/message/add_feedback.md

- "(ri:customer-service-line) Help & Support":
- "(ri:error-warning-line) Error Codes": api_docs/help/error_codes.md
Expand Down