From 040e4e3253988b33fb050abc7c1aaa0c85b1e435 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 16 Mar 2026 17:55:49 +0800 Subject: [PATCH] fix --- src/components/Tutorial.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Tutorial.vue b/src/components/Tutorial.vue index ac4d163..da66fa9 100644 --- a/src/components/Tutorial.vue +++ b/src/components/Tutorial.vue @@ -56,6 +56,9 @@ async function getContent() { } function addButton() { + const existing = $content.value?.querySelectorAll(".codeblock-action") ?? [] + for (const el of existing) el.remove() + const action = document.createElement("div") action.className = "codeblock-action" const pres = $content.value?.querySelectorAll("pre") ?? []