|
@@ -49,13 +49,9 @@ export function copyFit(value) {
|
|
|
if(navigator.clipboard) {
|
|
|
navigator.clipboard.writeText(value)
|
|
|
}else {
|
|
|
- const input = document.createElement('input')
|
|
|
- input.setAttribute('readonly','readonly')
|
|
|
- input.value = value
|
|
|
- document.body.appendChild(input)
|
|
|
- input.select();
|
|
|
- document.execCommand('copy');
|
|
|
- document.body.removeChild(input);
|
|
|
+ setTimeout(() => {
|
|
|
+ bus.$copyText(value)
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|