(copyCode)
| 108 | } |
| 109 | |
| 110 | function copyCodeFunc(copyCode) { |
| 111 | copyCode && |
| 112 | document.addEventListener("copy", function (event) { |
| 113 | const selectedText = window.getSelection().toString() |
| 114 | event.clipboardData.setData("text/plain", selectedText) |
| 115 | event.preventDefault() |
| 116 | }) |
| 117 | copyCodeCssFunc(copyCode) |
| 118 | } |
| 119 | |
| 120 | // 关闭登录弹框 |
| 121 | function closeLoginModalFunc() { |
no test coverage detected