Merge pull request #2448 from wucm667/codex/issue-2334-copy-all
fix: 修复兑换码生成后复制全部报错
This commit is contained in:
1 file changed
+2
-4
@@ -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