chore: add NOCOBASE_SYSTEM_SETTINGS to localStorage

This commit is contained in:
Rain 2023-09-10 00:27:09 +08:00
parent f736085af6
commit 893b2d71bc

View File

@ -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 <SystemSettingsContext.Provider value={result}>{props.children}</SystemSettingsContext.Provider>;
};