提交 7f8bd413 编写于 作者: Q qq_38870145

Mon Nov 13 09:33:00 CST 2023 inscode

上级 8e91af3a
...@@ -54,8 +54,10 @@ const copyContent = async (text) => { ...@@ -54,8 +54,10 @@ const copyContent = async (text) => {
try { try {
await navigator.clipboard.writeText(text); await navigator.clipboard.writeText(text);
console.log('Content copied to clipboard'); console.log('Content copied to clipboard');
window.alert('复制成功!')
} catch (err) { } catch (err) {
console.error('Failed to copy: ', err); console.error('Failed to copy: ', err);
window.alert(JSON.stringify(err))
} }
} }
const onPrint=()=>{ const onPrint=()=>{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册