From 1a7eeab9ff092efb71ef21ca33b0618419c2471d Mon Sep 17 00:00:00 2001 From: YangFong Date: Wed, 21 Aug 2024 13:16:07 +0800 Subject: [PATCH] fix: copy of dark theme (#337) --- src/components/CodemirrorEditor/EditorHeader/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CodemirrorEditor/EditorHeader/index.vue b/src/components/CodemirrorEditor/EditorHeader/index.vue index 47f28bb..8054744 100644 --- a/src/components/CodemirrorEditor/EditorHeader/index.vue +++ b/src/components/CodemirrorEditor/EditorHeader/index.vue @@ -136,7 +136,7 @@ function copy() { clipboardDiv.innerHTML = output.value if (isBeforeDark) { - toggleDark() + nextTick(() => toggleDark()) } // 输出提示