| | |
| | | amount: this.data.amount, |
| | | safeword: this.password |
| | | } |
| | | priceapi.walletGrthertransfer(data).then((res) => { |
| | | await priceapi.walletGrthertransfer(data).then((res) => { |
| | | this.$toast(this.$t('操作成功')); |
| | | this.$router.go(-1); |
| | | }).catch((err)=>{ |
| | | this.$toast(err.msg); |
| | | // this.$toast(err.msg); |
| | | this.$router.go(-1); |
| | | }); |
| | | } |
| | |
| | | // break; |
| | | default: |
| | | if (msg != undefined) { |
| | | Toast.fail({ |
| | | // icon: 'none', |
| | | message: i18n.t(msg), |
| | | }); |
| | | console.log(msg); |
| | | const translatedMessage = i18n.t(msg); // 使用 msg 进行翻译 |
| | | Toast.fail(translatedMessage); // 提示用户 |
| | | console.log(translatedMessage); // 你可以查看翻译结果 |
| | | } |
| | | //console.log('错误') |
| | | return Promise.reject(res.data); |