From cb37c296a3cfdad43991cb08873d441e020cf26f Mon Sep 17 00:00:00 2001 From: lfs3 Date: Mon, 29 Jul 2019 15:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=8A=B5=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=EF=BC=8C=E6=94=B9=E6=88=90=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/month-card.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/month-card.vue b/src/view/month-card.vue index 9ebae0f..dbdee1f 100644 --- a/src/view/month-card.vue +++ b/src/view/month-card.vue @@ -105,6 +105,7 @@ export default { methods: { // 初始化 handleInit() { + let that = this; // 回去优惠券信息 @@ -173,7 +174,7 @@ export default { that.loading = false; console.log("信息", result); if (result.code === 0 || result.code === 3) { - window.history.go(0); + that.handleInit(); } else if (result.code === 666) { that.$vux.toast.text("您还没登录,请先登录!", "middle"); setTimeout(function() {