MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / copyClick

Function copyClick

ui/src/utils/clipboard.ts:7–16  ·  view source on GitHub ↗
(info: string)

Source from the content-addressed store, hash-verified

5 复制粘贴
6*/
7export async function copyClick(info: string) {
8 const { toClipboard } = Clipboard()
9 try {
10 await toClipboard(info)
11 MsgSuccess(t('common.copySuccess'))
12 } catch (e) {
13 console.error(e)
14 MsgError(t('common.copyError'))
15 }
16}

Callers 1

copy_nodeFunction · 0.90

Calls 3

MsgSuccessFunction · 0.90
MsgErrorFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected