From 893b2d71bc66fb2285cfb13af07f98f5dba51638 Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Sun, 10 Sep 2023 00:27:09 +0800 Subject: [PATCH] chore: add NOCOBASE_SYSTEM_SETTINGS to localStorage --- .../client/src/system-settings/SystemSettingsProvider.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/client/src/system-settings/SystemSettingsProvider.tsx b/packages/core/client/src/system-settings/SystemSettingsProvider.tsx index 90cd262a2..840edaf23 100644 --- a/packages/core/client/src/system-settings/SystemSettingsProvider.tsx +++ b/packages/core/client/src/system-settings/SystemSettingsProvider.tsx @@ -17,5 +17,9 @@ export const SystemSettingsProvider: React.FC<{ children?: ReactNode }> = (props if (result.loading) { return render(); } + + // 主要是为了方便在 e2e 测试中获取到 adminSchemaUid + localStorage.setItem('NOCOBASE_SYSTEM_SETTINGS', JSON.stringify(result.data)); + return {props.children}; };