Skip to content

Commit 51d4478

Browse files
author
harvey_xiang
committed
Merge branch 'main' into v2
2 parents 72edb3c + b5e0e76 commit 51d4478

5 files changed

Lines changed: 52 additions & 5 deletions

File tree

app/components/Assistant/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function onStopStreaming() {
5656
<Transition name="slide">
5757
<div
5858
v-if="isOpen"
59-
class="h-full shrink-0 overflow-hidden"
59+
class="h-screen sticky top-0 shrink-0 overflow-hidden"
6060
>
6161
<UDashboardSidebar
6262
id="assistant"

app/layouts/default.vue

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,58 @@
1+
<script setup lang="ts">
2+
const route = useRoute()
3+
const nuxtApp = useNuxtApp()
4+
5+
// Handle scroll reset on page navigation finish
6+
nuxtApp.hook('page:finish', () => {
7+
nextTick(() => {
8+
// Check if there is a hash
9+
if (route.hash) {
10+
const el = document.querySelector(route.hash)
11+
if (el) {
12+
el.scrollIntoView({ behavior: 'smooth' })
13+
}
14+
} else {
15+
// Reset scroll to top if no hash
16+
const el = document.getElementById('dashboard-panel-main')
17+
if (el) {
18+
el.scrollTop = 0
19+
}
20+
}
21+
})
22+
})
23+
24+
watch(() => route.hash, (hash) => {
25+
if (hash) {
26+
nextTick(() => {
27+
const el = document.querySelector(hash)
28+
if (el) {
29+
el.scrollIntoView({ behavior: 'smooth' })
30+
}
31+
})
32+
}
33+
})
34+
35+
onMounted(() => {
36+
if (route.hash) {
37+
nextTick(() => {
38+
const el = document.querySelector(route.hash)
39+
if (el) {
40+
el.scrollIntoView({ behavior: 'smooth' })
41+
}
42+
})
43+
}
44+
})
45+
</script>
46+
147
<template>
248
<UDashboardGroup
349
:persistent="false"
450
unit="px"
51+
class="h-screen overflow-hidden"
552
>
653
<UDashboardPanel
754
id="main"
8-
class="overflow-y-auto scrollbar-hide"
55+
class="h-full overflow-y-auto scrollbar-hide "
956
>
1057
<slot />
1158
</UDashboardPanel>

content/cn/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ nav:
9797
- "(ri:search-2-line) 检索记忆": api_docs/core/search_memory.md
9898
- "(ri:file-list-line) 获取记忆": api_docs/core/get_memory.md
9999
- "(ri:delete-bin-line) 删除记忆": api_docs/core/delete_memory.md
100+
- "(ri:feedback-line) 添加反馈": api_docs/message/add_feedback.md
100101

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

116116
- "(ri:customer-service-line) 帮助与支持":
117117
- "(ri:error-warning-line) 错误码": api_docs/help/error_codes.md

content/en/api_docs/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@
10561056
"items": {
10571057
"type": "string"
10581058
},
1059-
"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."
1059+
"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."
10601060
},
10611061
"memory_limit_number": {
10621062
"type": "integer",

content/en/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ nav:
9797
- "(ri:search-2-line) Search Memory": api_docs/core/search_memory.md
9898
- "(ri:file-list-line) Get Memory": api_docs/core/get_memory.md
9999
- "(ri:delete-bin-line) Delete Memory": api_docs/core/delete_memory.md
100+
- "(ri:feedback-line) Add Feedback": api_docs/message/add_feedback.md
100101

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

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

0 commit comments

Comments
 (0)