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

Commit

Permalink
fix(pay): (#585) 点击忘记密码没有跳转到找回密码页面的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 12, 2018
1 parent 843f76d commit 88f978d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/applyForTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ export default {
return currency.sum || 0;
}
},
watch: {
$route(to, from) {
if (to !== from) this.cancel();
}
},
created() {
/**
* 弹出申请置顶窗口 (hooks -> applyTop)
Expand Down
6 changes: 5 additions & 1 deletion src/components/common/PasswordConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
type="submit"
@click="submit" >确认</button>
</form>
<router-link :class="{disabled}" to="/forget">忘记密码?</router-link>
<a :class="{disabled}" @click="onForgotClick">忘记密码?</a>
</main>
</div>
</transition>
Expand Down Expand Up @@ -69,6 +69,10 @@ export default {
this.$emit("submit", this.password);
this.visible = false;
this.password = "";
},
onForgotClick() {
this.$router.push({ path: "/forgot" });
this.cancel();
}
}
};
Expand Down
3 changes: 3 additions & 0 deletions src/components/reward.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export default {
watch: {
customAmount(val) {
this.amount = ~~val;
},
$route(to, from) {
if (to !== from) this.cancel();
}
},
created() {
Expand Down

0 comments on commit 88f978d

Please sign in to comment.