From 02646cdf176a49149530bf729528e2a2119f3b6a Mon Sep 17 00:00:00 2001 From: Quincy Qiu <39936160+qiuqfang@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:53:20 +0800 Subject: [PATCH] docs: Auto-modify theme editing content (#43287) --- .dumi/pages/theme-editor/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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} />