commit
ab0bcd27bd
@ -199,7 +199,8 @@ var copyMap = new Vue({
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pout.select();
|
||||
pout.focus();
|
||||
pout.setSelectionRange(0, pout.value.length);
|
||||
document.execCommand("Copy");
|
||||
tip.whichShow = 6;
|
||||
} catch (e) {
|
||||
|
||||
@ -568,7 +568,8 @@ utils.prototype.copy = function (data) {
|
||||
textArea.style.background = 'transparent';
|
||||
textArea.value = data;
|
||||
document.body.appendChild(textArea);
|
||||
textArea.select();
|
||||
textArea.focus();
|
||||
textArea.setSelectionRange(0, textArea.value.length);
|
||||
var successful = false;
|
||||
try {
|
||||
successful = document.execCommand('copy');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user