diff --git a/src/views/Wallet/CashOut/KYC.vue b/src/views/Wallet/CashOut/KYC.vue index 6474e9a..7af7013 100644 --- a/src/views/Wallet/CashOut/KYC.vue +++ b/src/views/Wallet/CashOut/KYC.vue @@ -241,18 +241,18 @@ const onClickImagePicker = async () => { } // 调用原生图片选择器 -const callNativeImagePicker = () => { +const callNativeImagePicker = async () => { console.log('调用原生图片选择器') // 最多3张图片 if (previewUrls.value.length >= 3) { showWarning(t('max_images_warning')) - return Promise.reject(new Error('Maximum number of images reached')) + throw new Error('Maximum number of images reached') } return new Promise((resolve, reject) => { try { - uploadImgFile((access) => { + uploadImgFile(async (access) => { try { // 处理空数据情况 if (!access || access === '""' || access === '') {