From 45b6e05abcb66975614bc53e476400744ccc704e Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 20 Aug 2024 10:58:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20tinymce=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/Tinymce/src/Editor.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/components/Tinymce/src/Editor.vue b/apps/web-antd/src/components/Tinymce/src/Editor.vue index 436da2ee..f9efb52d 100644 --- a/apps/web-antd/src/components/Tinymce/src/Editor.vue +++ b/apps/web-antd/src/components/Tinymce/src/Editor.vue @@ -95,11 +95,15 @@ const containerWidth = computed(() => { }); const skinName = computed(() => { - return preferences.theme.mode === 'light' ? 'oxide' : 'oxide-dark'; + const theme = + preferences.theme.mode === 'auto' ? 'light' : preferences.theme.mode; + return theme === 'light' ? 'oxide' : 'oxide-dark'; }); const contentCss = computed(() => { - return preferences.theme.mode === 'light' ? 'default' : 'dark'; + const theme = + preferences.theme.mode === 'auto' ? 'light' : preferences.theme.mode; + return theme === 'light' ? 'default' : 'dark'; }); /**