feat: 优化复制wget

This commit is contained in:
Lan
2025-03-03 23:04:44 +08:00
parent df55c48040
commit a03c040ff0
2 changed files with 103 additions and 58 deletions
+8
View File
@@ -79,3 +79,11 @@ export const copyRetrieveCode = async (code: string): Promise<boolean> => {
errorMsg: '复制失败,请手动复制取件码'
})
}
export const copyWgetCommand = async (code: string): Promise<boolean> => {
const command = `wget ${window.location.origin}/share/select?code=${code}`
return copyToClipboard(command, {
successMsg: 'wget命令已复制到剪贴板',
errorMsg: '复制失败,请手动复制wget命令'
})
}