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 }),