修改报错提示抓取信息

This commit is contained in:
yuyongdong 2024-08-29 11:13:55 +08:00
parent 5423f5d978
commit a7b14fb769
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ export default {
} }
} catch (e) { } catch (e) {
console.log(e) console.log(e)
new FirebaseUtil().uploadEvent('connect_wallet_err', e) new FirebaseUtil().uploadEvent('connect_wallet_err', {error: e.message || e})
} }
} }
}, },

View File

@ -326,13 +326,13 @@ export default {
this.tipsStatus = 1 this.tipsStatus = 1
this.loadingDialogVisible = false this.loadingDialogVisible = false
this.countTime() this.countTime()
if(e.message.indexOf('user reject this request') > -1) { if(e.message.indexOf('request') > -1) {
this.tipsText = 'Top-Up Cancelled by User' this.tipsText = 'Top-Up Cancelled by User'
this.tipsTime = 3 this.tipsTime = 3
} else { } else {
this.tipsText = 'Top-Up fail.' this.tipsText = 'Top-Up fail.'
} }
new FirebaseUtil().uploadEvent('charge_error', {email, data, error: e}) new FirebaseUtil().uploadEvent('charge_error', {email, data, error: e.message || e})
} }
} else { } else {
this.loadingDialogVisible = false this.loadingDialogVisible = false