From 23e751fbfa92dc2f15589c5d8d65064d199db8a3 Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 29 Oct 2021 11:52:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20js=20=E4=BB=A3=E7=A0=81=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=B8=8D=E8=83=BD=E5=9C=A8=E7=BB=88=E7=AB=AF=E8=BF=90?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/plugins/markdown-code-run.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/plugins/markdown-code-run.ts b/src/renderer/plugins/markdown-code-run.ts index d5f43183..be979174 100644 --- a/src/renderer/plugins/markdown-code-run.ts +++ b/src/renderer/plugins/markdown-code-run.ts @@ -89,6 +89,7 @@ const RunCode = defineComponent({ h('div', { title: `在终端中运行代码,${getKeyLabel(CtrlCmd)} + 单击不退出解释器`, class: 'no-print', + hidden: ['js', 'javascript'].includes((props.language || '').toLowerCase()), style: 'position: absolute; top: -.5em; right: -0; height: 0; width: 0; border-left: .7em #b7b3b3 solid; border-top: .6em #dddddd00 solid; border-bottom: .6em #dddddd00 solid; border-right: 0; background: rgba(0, 0, 0, 0); cursor: pointer; outline: none;transform: rotate(90deg);', onClick: runInXterm }),