链接复制功能

This commit is contained in:
aqu415
2022-03-26 12:16:14 +08:00
parent c6ba5b50f5
commit 96086bce3e
-1
View File
@@ -255,7 +255,6 @@
// 复制链接 // 复制链接
function copy_url(id) { function copy_url(id) {
let href = location.href + `detail?id=${id}`; let href = location.href + `detail?id=${id}`;
console.log(href)
navigator.clipboard.writeText(href) navigator.clipboard.writeText(href)
.then(() => { .then(() => {
// Success! // Success!