lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.09k stars 9.85k forks source link

[Bug] 复制的内容在 WPS 内看不见 #877

Closed mushan0x0 closed 10 months ago

mushan0x0 commented 10 months ago

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

复制的内容在 WPS 内看不见,原因是使用了 copy-to-clipboard 这个库来实现的复制文本,这个库复制文本会带上文本样式 https://github.com/sudodoki/copy-to-clipboard/issues/46 ,而且这个库已经过时了,可以用 navigator.clipboard.writeText 来代替,Next-web 也是用这个实现的 utils.ts#L17 就没有这个问题。

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

https://github.com/lobehub/lobe-chat/assets/29084441/090a5ea6-852a-4a3a-bbe1-41a7819f3fcf

📝 补充信息 | Additional Information

No response

lobehubbot commented 10 months ago

👀 @mushan0x0

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 10 months ago

✅ @mushan0x0

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。