Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix: copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-f committed Dec 19, 2020
1 parent 2bcbab9 commit d177cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ const selection = {
oInput.setAttribute('readonly', 'readonly');
oInput.value = cpdata;
document.body.appendChild(oInput);
oInput.setSelectionRange(0, cpdata.length);
oInput.select(); // 选择对象
document.execCommand("Copy");
oInput.style.display='none';
document.body.removeChild(oInput);
Expand Down

0 comments on commit d177cc8

Please sign in to comment.