提交 cce436a1 编写于 作者: View Design's avatar View Design

Update ProsePre.global.vue

上级 986014df
...@@ -54,7 +54,7 @@ const handleCopy = () => { ...@@ -54,7 +54,7 @@ const handleCopy = () => {
} }
const codeBlock = ref(null) const codeBlock = ref(null)
const handleRender = () => { const handleRender = () => {
const language = props.language || 'html'; const language = props.language || 'html'
const lang = language.startsWith('vue') ? 'html' : language const lang = language.startsWith('vue') ? 'html' : language
codeBlock.value = hljs.highlight(lang, props.code, true).value codeBlock.value = hljs.highlight(lang, props.code, true).value
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册