diff --git a/static/html/list.html b/static/html/list.html
index 83ea614..d9452dc 100644
--- a/static/html/list.html
+++ b/static/html/list.html
@@ -71,7 +71,7 @@
${item.update_time} |
编辑
- 复制分享
+ 复制分享
删除
|
`
@@ -251,6 +251,20 @@
function delmind(id) {
view.del_mind(id)
}
+
+ // 复制链接
+ function copy_url(id) {
+ let href = location.href + `detail?id=${id}`;
+ console.log(href)
+ navigator.clipboard.writeText(href)
+ .then(() => {
+ // Success!
+ layer.msg('复制成功')
+ })
+ .catch(err => {
+ console.log('Something went wrong', err);
+ });
+ }