mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
refactor: Add key prop to RunCode component in markdown-code-run.ts
This commit is contained in:
@@ -166,6 +166,7 @@ const RunCode = defineComponent({
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
appendLog = undefined
|
||||
abort()
|
||||
removeHook('CODE_RUNNER_CHANGE', refreshRunner)
|
||||
})
|
||||
|
||||
@@ -214,6 +215,7 @@ const RunPlugin = (md: Markdown) => {
|
||||
|
||||
if (codeNode && Array.isArray(codeNode.children)) {
|
||||
codeNode.children.push(h(RunCode, {
|
||||
key: code,
|
||||
code,
|
||||
firstLine,
|
||||
language: token.info,
|
||||
|
||||
Reference in New Issue
Block a user