diff --git a/.dumi/pages/theme-editor/index.tsx b/.dumi/pages/theme-editor/index.tsx index 5d11f141ba..e0df502b38 100644 --- a/.dumi/pages/theme-editor/index.tsx +++ b/.dumi/pages/theme-editor/index.tsx @@ -183,6 +183,10 @@ const CustomTheme = () => { style={{ height: 'calc(100vh - 64px - 56px)' }} onThemeChange={(newTheme) => { setTheme(newTheme.config); + setThemeConfigContent({ + json: newTheme.config, + text: undefined, + }); }} locale={lang === 'cn' ? zhCN : enUS} />