diff --git a/document/content/docs/upgrading/4-14/4142.mdx b/document/content/docs/upgrading/4-14/4142.mdx index 8fef2e21ded1..74a255581088 100644 --- a/document/content/docs/upgrading/4-14/4142.mdx +++ b/document/content/docs/upgrading/4-14/4142.mdx @@ -21,6 +21,7 @@ description: 'FastGPT V4.14.2 更新说明' 1. 简易应用模板未正常转化。 2. 工具调用中,包含两个以上连续用户选择时候,第二个用户选择异常。 3. 门户中,团队应用类型错误。 +4. 应用作为 MCP 导出,被其他应用使用时,全局变量不需要填写。 ## 插件 diff --git a/document/data/doc-last-modified.json b/document/data/doc-last-modified.json index 3e756af53c23..02c3fc9ceb89 100644 --- a/document/data/doc-last-modified.json +++ b/document/data/doc-last-modified.json @@ -116,7 +116,7 @@ "document/content/docs/upgrading/4-13/4132.mdx": "2025-10-21T11:46:53+08:00", "document/content/docs/upgrading/4-14/4140.mdx": "2025-11-06T15:43:00+08:00", "document/content/docs/upgrading/4-14/4141.mdx": "2025-11-12T12:19:02+08:00", - "document/content/docs/upgrading/4-14/4142.mdx": "2025-11-17T19:34:52+08:00", + "document/content/docs/upgrading/4-14/4142.mdx": "2025-11-17T21:02:39+08:00", "document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00", diff --git a/packages/web/i18n/en/app.json b/packages/web/i18n/en/app.json index 7b59368a155f..81aab5a5388b 100644 --- a/packages/web/i18n/en/app.json +++ b/packages/web/i18n/en/app.json @@ -129,6 +129,7 @@ "dataset": "dataset", "dataset.Select_dataset_model_tip": "Only knowledge bases with the same index model can be selected", "dataset.create_dataset_tips": "For more advanced operations, please go to", + "dataset_create_failed": "Knowledge base creation failed", "dataset_create_success": "The knowledge base was created successfully and files are being indexed in the background.", "dataset_empty_tips": "You don’t have a knowledge base yet, create one first.", "dataset_search_tool_description": "Call the \"Semantic Search\" and \"Full-text Search\" capabilities to find reference content that may be related to the problem from the \"Knowledge Base\". \nPrioritize calling this tool to assist in answering user questions.", diff --git a/packages/web/i18n/zh-CN/app.json b/packages/web/i18n/zh-CN/app.json index 65b90e90ed56..bc6a354fcfcf 100644 --- a/packages/web/i18n/zh-CN/app.json +++ b/packages/web/i18n/zh-CN/app.json @@ -132,6 +132,7 @@ "dataset": "知识库", "dataset.Select_dataset_model_tip": "仅能选择同一个索引模型的知识库", "dataset.create_dataset_tips": "更多高级操作请前往", + "dataset_create_failed": "知识库创建失败", "dataset_create_success": "知识库创建成功,正在后台索引文件", "dataset_empty_tips": "你还没有知识库,先创建一个吧", "dataset_search_tool_description": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容。优先调用该工具来辅助回答用户的问题。", diff --git a/packages/web/i18n/zh-Hant/app.json b/packages/web/i18n/zh-Hant/app.json index fb36663586ce..b2fc705c5909 100644 --- a/packages/web/i18n/zh-Hant/app.json +++ b/packages/web/i18n/zh-Hant/app.json @@ -128,6 +128,7 @@ "dataset": "知識庫", "dataset.Select_dataset_model_tip": "僅能選擇同一個索引模型的知識庫", "dataset.create_dataset_tips": "更多高級操作請前往", + "dataset_create_failed": "知識庫創建失敗", "dataset_create_success": "知識庫創建成功,正在後台索引文件", "dataset_empty_tips": "你還沒有知識庫,先創建一個吧", "dataset_search_tool_description": "呼叫「語意搜尋」和「全文搜尋」功能,從「知識庫」中尋找可能與問題相關的參考內容。優先呼叫這個工具來協助回答使用者的問題。", diff --git a/projects/app/src/components/Layout/navbar.tsx b/projects/app/src/components/Layout/navbar.tsx index ae7012c4d08c..00a65fd370d5 100644 --- a/projects/app/src/components/Layout/navbar.tsx +++ b/projects/app/src/components/Layout/navbar.tsx @@ -110,8 +110,8 @@ const Navbar = ({ unread }: { unread: number }) => { [lastChatAppId, lastPane, t, userInfo?.username] ); - const isSecondNavbarPage = useMemo(() => { - return ['/plugin'].includes(router.pathname); + const isDashboardPage = useMemo(() => { + return router.pathname.startsWith('/dashboard'); }, [router.pathname]); return ( @@ -123,7 +123,7 @@ const Navbar = ({ unread }: { unread: number }) => { w={'100%'} userSelect={'none'} pb={2} - bg={isSecondNavbarPage ? 'white' : 'transparent'} + bg={isDashboardPage ? 'white' : 'transparent'} > {/* logo */} @@ -147,7 +147,7 @@ const Navbar = ({ unread }: { unread: number }) => { : { bg: 'transparent', _hover: { - bg: isSecondNavbarPage ? 'white' : 'rgba(255,255,255,0.9)' + bg: isDashboardPage ? 'white' : 'rgba(255,255,255,0.9)' } })} {...(item.link !== router.asPath diff --git a/projects/app/src/components/core/app/DatasetSelectModal.tsx b/projects/app/src/components/core/app/DatasetSelectModal.tsx index 82fc95a4b9c7..63f1d479d002 100644 --- a/projects/app/src/components/core/app/DatasetSelectModal.tsx +++ b/projects/app/src/components/core/app/DatasetSelectModal.tsx @@ -27,7 +27,8 @@ import SearchInput from '@fastgpt/web/components/common/Input/SearchInput'; import { useDatasetSelect } from '@/components/core/dataset/SelectModal'; import FolderPath from '@/components/common/folder/Path'; import EmptyTip from '@fastgpt/web/components/common/EmptyTip'; -import QuickCreateDatasetModal from '@/pageComponents/app/detail/components/QuickCreateModal'; +import QuickCreateDatasetModal from '@/pageComponents/app/detail/components/QuickCreateDatasetModal'; +import { useUserStore } from '@/web/support/user/useUserStore'; // Dataset selection modal component export const DatasetSelectModal = ({ @@ -47,6 +48,7 @@ export const DatasetSelectModal = ({ const [selectedDatasets, setSelectedDatasets] = useState(defaultSelectedDatasets); const { toast } = useToast(); + const { userInfo } = useUserStore(); // Use server-side search, following the logic of the dataset list page const { @@ -154,9 +156,11 @@ export const DatasetSelectModal = ({ {isRootEmpty ? ( - + - + {userInfo?.team?.permission.hasDatasetCreatePer && ( + + )} ) : ( <> @@ -427,7 +431,7 @@ export const DatasetSelectModal = ({ {/* Modal footer button area */} - {!isRootEmpty && ( + {!isRootEmpty && userInfo?.team?.permission.hasDatasetCreatePer && (