From 2f35bb23d44f23a1c83618ac9fc79f87162a8620 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 22 Jan 2024 22:15:13 +0800 Subject: [PATCH] refactor: local improve --- .../plugin-data-source-manager/src/client/constant.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts index 10943dc060..e0a9313e84 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts @@ -1,4 +1,5 @@ -export const getConnectionPath = (name: string | number) => `/admin/settings/database-connections/${name}`; -export const getConnectionCollectionPath = (name: string | number) => `/admin/settings/database-connections/${name}/collections`; -export const getConnectionPermissionPath = (name: string | number) => `/admin/settings/database-connections/${name}/permissions`; - +export const getConnectionPath = (name: string | number) => `/admin/settings/data-source-manager/${name}`; +export const getConnectionCollectionPath = (name: string | number) => + `/admin/settings/data-source-manager/${name}/collections`; +export const getConnectionPermissionPath = (name: string | number) => + `/admin/settings/data-source-manager/${name}/permissions`;