From 2cdc43cd0ff081442c9cfc201c74c3f08906f695 Mon Sep 17 00:00:00 2001 From: liangdaliang Date: Tue, 11 Mar 2025 23:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3vue-codemirror=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E6=89=8D=E6=98=BE=E7=A4=BA=E6=95=B0=E6=8D=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-ui/src/views/test/case/detail/page2.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-ui/src/views/test/case/detail/page2.vue b/test-ui/src/views/test/case/detail/page2.vue index 3168b53..4448fe9 100644 --- a/test-ui/src/views/test/case/detail/page2.vue +++ b/test-ui/src/views/test/case/detail/page2.vue @@ -78,6 +78,7 @@ import { codemirror } from "vue-codemirror"; import "codemirror/lib/codemirror.css"; import "codemirror/mode/sql/sql"; // 语言模式 import "codemirror/theme/dracula.css"; +import "codemirror/addon/display/autorefresh"; export default { components: { codemirror }, @@ -93,6 +94,7 @@ export default { return { activeName: "sql", editorOptions: { + autoRefresh: true, mode: "sql", // 代码语言 theme: "dracula", // 主题 lineNumbers: true, // 显示行号