fix: 修复多语言切换未实时同步问题

This commit is contained in:
qinhaoyan 2024-11-14 20:21:16 +08:00
parent aad00bb919
commit 86d3e0c74f

View File

@ -325,7 +325,7 @@ function AMISRenderer({
env.replaceTextIgnoreKeys env.replaceTextIgnoreKeys
); );
return schema; return schema;
}, [schema, locale]); }, [schema, locale, options.replaceText]);
return ( return (
<EnvContext.Provider value={env}> <EnvContext.Provider value={env}>