diff --git a/view/molistar/modules/eventDetails/js/index.js b/view/molistar/modules/eventDetails/js/index.js index 43390fe2..e241b488 100644 --- a/view/molistar/modules/eventDetails/js/index.js +++ b/view/molistar/modules/eventDetails/js/index.js @@ -253,23 +253,35 @@ function genLink(){ hideLoading(layerIndex); if (res.code == 200) { let text = res.data; - if (navigator.clipboard) { - // 使用 navigator.clipboard API - navigator.clipboard.writeText(text) - .then(function () { - toastMsg(langReplace(localLang.demoModule.Copy_Successfully)) - }) - .catch(function (error) { - }); - } else { - // 使用 document.execCommand("copy") 作为备用方案 - var $temp = $("