更新文档

This commit is contained in:
技术老胡
2024-11-28 17:01:13 +08:00
parent 1c165cddff
commit bd2428b191
16 changed files with 421 additions and 206 deletions

View File

@@ -152,7 +152,13 @@
table.on('toolDouble(account-table)', function (obj) {
if (obj.event === 'copy') {
const text = obj.tr[0].querySelector('td[data-field="checkUrl"]>div').innerText;
navigator.clipboard.writeText(text).then(() => { layer.msg('复制成功') });
if (navigator.clipboard) {
navigator.clipboard.writeText(text).then(() => {
layer.msg('复制成功');
});
} else {
layer.msg('复制失败,请手动复制');
}
}
});
// 表格头部按钮事件