mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
fix(redeem): 修复批量复制兑换码兼容性
This commit is contained in:
@@ -476,14 +476,12 @@ const closeResultDialog = () => {
|
||||
}
|
||||
|
||||
const copyGeneratedCodes = async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(generatedCodesText.value)
|
||||
const success = await clipboardCopy(generatedCodesText.value, t('admin.redeem.copied'))
|
||||
if (success) {
|
||||
copiedAll.value = true
|
||||
setTimeout(() => {
|
||||
copiedAll.value = false
|
||||
}, 2000)
|
||||
} catch (error) {
|
||||
appStore.showError(t('admin.redeem.failedToCopy'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user