From 1a6be31356c34b41b87ebe751755444bbda14246 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 11 Jul 2024 12:27:41 +0800 Subject: [PATCH] fix(Safari): resolve issue with menu page not refreshing in Safari (#4835) * fix(Safari): resolve issue with menu page not refreshing in Safari * chore: correct problematic code --- .../core/client/src/route-switch/antd/admin-layout/index.tsx | 3 +-- .../src/schema-component/core/RemoteSchemaComponent.tsx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx index a8654507fa..bb34122a98 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx @@ -35,9 +35,9 @@ import { } from '../../../'; import { Plugin } from '../../../application/Plugin'; import { useAppSpin } from '../../../application/hooks/useAppSpin'; +import { useMenuTranslation } from '../../../schema-component/antd/menu/locale'; import { Help } from '../../../user/Help'; import { VariablesProvider } from '../../../variables'; -import { useMenuTranslation } from '../../../schema-component/antd/menu/locale'; const filterByACL = (schema, options) => { const { allowAll, allowMenuItemIds = [] } = options; @@ -218,7 +218,6 @@ const MenuEditor = (props) => { diff --git a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx index b2e3152645..652fda9f05 100644 --- a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx +++ b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx @@ -62,10 +62,10 @@ const RequestSchemaComponent: React.FC = (props) => return ; } return noForm ? ( - + ) : ( - + ); };