diff --git a/packages/client/src/acl/Configuration/MenuConfigure.tsx b/packages/client/src/acl/Configuration/MenuConfigure.tsx index 87fbbd712..64f691dac 100644 --- a/packages/client/src/acl/Configuration/MenuConfigure.tsx +++ b/packages/client/src/acl/Configuration/MenuConfigure.tsx @@ -1,8 +1,8 @@ import { Checkbox, message, Table } from 'antd'; import React, { useState } from 'react'; -import { useMenuItems } from '.'; import { useAPIClient, useRequest } from '../../api-client'; import { useRecord } from '../../record-provider'; +import { useMenuItems } from './RoleTable'; const findUids = (items) => { if (!Array.isArray(items)) { diff --git a/packages/client/src/acl/Configuration/RolesResourcesActions.tsx b/packages/client/src/acl/Configuration/RolesResourcesActions.tsx index dbf0c8ebc..e5d58ab5e 100644 --- a/packages/client/src/acl/Configuration/RolesResourcesActions.tsx +++ b/packages/client/src/acl/Configuration/RolesResourcesActions.tsx @@ -4,8 +4,8 @@ import { connect, useField, useForm } from '@formily/react'; import { Checkbox, Table, Tag } from 'antd'; import React, { createContext } from 'react'; import { useTranslation } from 'react-i18next'; -import { useAvailableActions } from '.'; import { useCollectionManager, useCompile, useRecord } from '../..'; +import { useAvailableActions } from './RoleTable'; import { ScopeSelect } from './ScopeSelect'; const toActionMap = (arr: any[]) => { diff --git a/packages/client/src/acl/Configuration/StrategyActions.tsx b/packages/client/src/acl/Configuration/StrategyActions.tsx index ea07f574f..2e4781dfd 100644 --- a/packages/client/src/acl/Configuration/StrategyActions.tsx +++ b/packages/client/src/acl/Configuration/StrategyActions.tsx @@ -3,8 +3,8 @@ import { connect, useField } from '@formily/react'; import { Checkbox, Select, Table, Tag } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; -import { useAvailableActions } from '.'; import { useCompile } from '../..'; +import { useAvailableActions } from './RoleTable'; const toScopes = (value) => { if (!value) { diff --git a/packages/client/src/acl/Configuration/index.tsx b/packages/client/src/acl/Configuration/index.tsx index 398cda41f..d9be8947d 100644 --- a/packages/client/src/acl/Configuration/index.tsx +++ b/packages/client/src/acl/Configuration/index.tsx @@ -1,6 +1,6 @@ -export * from './MenuConfigure'; -export * from './RoleConfigure'; -export * from './RolesResourcesActions'; -export * from './RoleTable'; -export * from './StrategyActions'; +export { MenuConfigure } from './MenuConfigure'; +export { RoleConfigure } from './RoleConfigure'; +export { RolesResourcesActions } from './RolesResourcesActions'; +export { RoleTable } from './RoleTable'; +export { StrategyActions } from './StrategyActions';