mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-29 00:50:22 +09:00
fex
This commit is contained in:
parent
35aa2c7270
commit
d95d509046
@ -128,7 +128,6 @@ export function PreCode(props: { children: any }) {
|
|||||||
className="copy-code-button"
|
className="copy-code-button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (ref.current) {
|
if (ref.current) {
|
||||||
// const code = ref.current.innerText;
|
|
||||||
copyToClipboard(
|
copyToClipboard(
|
||||||
ref.current.querySelector("code")?.innerText ?? "",
|
ref.current.querySelector("code")?.innerText ?? "",
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user