Skip to content

Commit f3a67f9

Browse files
committed
fix(jmanus): translate
1 parent 2ef8825 commit f3a67f9

File tree

1 file changed

+5
-5
lines changed
  • spring-ai-alibaba-jmanus/ui-vue3/src/components/chat

1 file changed

+5
-5
lines changed

spring-ai-alibaba-jmanus/ui-vue3/src/components/chat/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ mdRenderer.code = ({ text, lang }: { text: string; lang?: string; escaped?: bool
571571
<div class="md-code-block" data-lang="${label}">
572572
<div class="md-code-header">
573573
<span class="md-lang">${label}</span>
574-
<button class="md-copy-btn" data-raw="${rawEncoded}" title="复制">复制</button>
574+
<button class="md-copy-btn" data-raw="${rawEncoded}" title="copy">copy</button>
575575
</div>
576576
<pre><code class="hljs language-${label}">${highlighted}</code></pre>
577577
</div>`
@@ -1412,12 +1412,12 @@ const handleMessageContainerClick = (event: Event) => {
14121412
document.execCommand('copy')
14131413
document.body.removeChild(ta)
14141414
}
1415-
btn.textContent = '已复制'
1416-
setTimeout(() => (btn.textContent = '复制'), 1500)
1415+
btn.textContent = 'copy'
1416+
setTimeout(() => (btn.textContent = 'copy'), 1500)
14171417
} catch (err) {
14181418
console.error('Copy failed:', err)
1419-
btn.textContent = '复制失败'
1420-
setTimeout(() => (btn.textContent = '复制'), 1500)
1419+
btn.textContent = 'copy failed'
1420+
setTimeout(() => (btn.textContent = 'copy'), 1500)
14211421
}
14221422
}
14231423

0 commit comments

Comments
 (0)