feat: 优化复制wget

This commit is contained in:
Lan committed 2025-03-03 23:04:44 +08:00
1 parent df55c48040
commit a03c040ff0
2 files changed
+103 -58

No files matched your search

+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命令'
})
}