Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(wallet): 修复充值成功后回掉地址跳到错误页面的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 30, 2018
1 parent 81267fb commit e21e1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/page/currency/CurrencyRecharge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default {
this.loading = true;
const url = await this.$store.dispatch("currency/requestRecharge", {
amount,
redirect: `${location.origin}/currency`, // 支付成功后回调地址
redirect: `${window.location.origin}${process.env.BASE_URL}/currency`, // 支付成功后回调地址
type
});
this.loading = false;
Expand Down
2 changes: 1 addition & 1 deletion src/page/wallet/WalletRecharge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
// 获取第三方支付地址,跳转过去
const url = await this.$store.dispatch("wallet/requestRecharge", {
amount,
redirect: `${location.origin}/wallet`, // 支付成功后回调地址
redirect: `${window.location.origin}${process.env.BASE_URL}/wallet`, // 支付成功后回调地址
type
});
location.href = url;
Expand Down

0 comments on commit e21e1d1

Please sign in to comment.