From 4ffaddf0dae95ad74c3b18d4c3bc3c5a31de4683 Mon Sep 17 00:00:00 2001 From: antalike <> Date: Mon, 26 Jan 2026 19:04:00 +0800 Subject: [PATCH 1/3] Update settings.yml --- content/cn/settings.yml | 2 +- content/en/settings.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/cn/settings.yml b/content/cn/settings.yml index c0dca056..3aa133ec 100644 --- a/content/cn/settings.yml +++ b/content/cn/settings.yml @@ -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 @@ -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 diff --git a/content/en/settings.yml b/content/en/settings.yml index 4e77b5f0..e4a8215d 100644 --- a/content/en/settings.yml +++ b/content/en/settings.yml @@ -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 @@ -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 From 3fe9770a0682d403f3bf6039d997b8c123b0c960 Mon Sep 17 00:00:00 2001 From: antalike <> Date: Mon, 26 Jan 2026 19:04:51 +0800 Subject: [PATCH 2/3] fix: independent scroll layout and hash navigation --- app/components/Assistant/index.vue | 2 +- app/layouts/default.vue | 49 +++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/app/components/Assistant/index.vue b/app/components/Assistant/index.vue index a2606940..5d8ca112 100644 --- a/app/components/Assistant/index.vue +++ b/app/components/Assistant/index.vue @@ -56,7 +56,7 @@ function onStopStreaming() {
+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' }) + } + }) + } +}) + +