提交 62e14af6 编写于 作者: D DebugIsFalse

Update ProsePre.global.vue

上级 17e52e4d
...@@ -60,8 +60,11 @@ const handleRender = () => { ...@@ -60,8 +60,11 @@ const handleRender = () => {
hljs.highlightElement(codeBlock.value) hljs.highlightElement(codeBlock.value)
} }
} }
watch(()=> props.code, () => {
handleRender();
})
onMounted(() => { onMounted(() => {
handleRender() handleRender();
}) })
</script> </script>
...@@ -69,4 +72,7 @@ onMounted(() => { ...@@ -69,4 +72,7 @@ onMounted(() => {
pre code .line { pre code .line {
display: block; display: block;
} }
.hljs {
background: transparent;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册