mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
没传入 locale 不更新 env
This commit is contained in:
parent
fd988819c6
commit
7356c023c0
@ -979,8 +979,11 @@ export function render(
|
||||
const env = getEnv(store);
|
||||
const theme = props.theme || options.theme || 'default';
|
||||
env.theme = getTheme(theme);
|
||||
env.translate = translate;
|
||||
env.locale = locale;
|
||||
|
||||
if (props.locale !== undefined) {
|
||||
env.translate = translate;
|
||||
env.locale = locale;
|
||||
}
|
||||
|
||||
return (
|
||||
<ScopedRootRenderer
|
||||
|
Loading…
Reference in New Issue
Block a user