fix(redeem): 修复批量复制兑换码兼容性
This commit is contained in:
parent
18790386a7
commit
4d51e53d20
@ -476,14 +476,12 @@ const closeResultDialog = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const copyGeneratedCodes = async () => {
|
const copyGeneratedCodes = async () => {
|
||||||
try {
|
const success = await clipboardCopy(generatedCodesText.value, t('admin.redeem.copied'))
|
||||||
await navigator.clipboard.writeText(generatedCodesText.value)
|
if (success) {
|
||||||
copiedAll.value = true
|
copiedAll.value = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
copiedAll.value = false
|
copiedAll.value = false
|
||||||
}, 2000)
|
}, 2000)
|
||||||
} catch (error) {
|
|
||||||
appStore.showError(t('admin.redeem.failedToCopy'))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user