diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx index 5a3931b10..a2a731e99 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx @@ -1,6 +1,6 @@ import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; -import { ActionContext, SchemaComponent, useCompile, usePlugin } from '@nocobase/client'; +import { ActionContext, SchemaComponent, useAPIClient, useCompile, usePlugin } from '@nocobase/client'; import { Button, Dropdown, Empty } from 'antd'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -15,6 +15,7 @@ export const CreateDatabaseConnectAction = () => { const [visible, setVisible] = useState(false); const { t } = useTranslation(); const [dialect, setDialect] = useState(null); + const api = useAPIClient(); const useDialectDataSource = (field) => { const options = [...plugin.types.keys()].map((key) => { const type = plugin.types.get(key); @@ -100,7 +101,18 @@ export const CreateDatabaseConnectAction = () => { description={ <> {t('No external data source plugin installed', { ns: NAMESPACE })} -
{t('View more', { ns: NAMESPACE })} +
{' '} + + {t('View documentation', { ns: NAMESPACE })} + } /> diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json index b0d6165ff..e0629b75d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json @@ -7,7 +7,7 @@ "Data source manager": "数据源管理", "Data sources": "数据源", "No external data source plugin installed": "未安装外部数据源", - "View more": "查看更多", + "View documentation": "查看文档", "Test Connection": "测试连接", "Connection successful": "连接成功", "Display name": "名称",