Commit f71f838c by gonglei

加入框架代码

1 parent 3c8e7d81
...@@ -108,6 +108,10 @@ export default class ViewRecharge extends Vue { ...@@ -108,6 +108,10 @@ export default class ViewRecharge extends Vue {
created(): void { created(): void {
this.rechargeId = Number(this.$route.query.rechargeId); this.rechargeId = Number(this.$route.query.rechargeId);
this.loadData();
}
loadData(): void {
RechargeController.getRechargeById(this.axios, this.rechargeId).then(response => { RechargeController.getRechargeById(this.axios, this.rechargeId).then(response => {
this.recharge = response.data; this.recharge = response.data;
}); });
...@@ -126,6 +130,7 @@ export default class ViewRecharge extends Vue { ...@@ -126,6 +130,7 @@ export default class ViewRecharge extends Vue {
emits: { emits: {
handleOk: (e) => { handleOk: (e) => {
modal.destroy(); modal.destroy();
this.loadData();
} }
}, },
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!