(text)
| 369 | }; |
| 370 | |
| 371 | const copyText = async (text) => { |
| 372 | if (await copy(text)) { |
| 373 | showSuccess('已复制:' + text); |
| 374 | } else { |
| 375 | // setSearchKeyword(text); |
| 376 | Modal.error({ title: '无法复制到剪贴板,请手动复制', content: text }); |
| 377 | } |
| 378 | }; |
| 379 | |
| 380 | useEffect(() => { |
| 381 | refresh().then(); |
no test coverage detected