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()) } // 输出提示