添加函数返回 (#478)

wx.naviageTo是异步的。这里需要返回语句。
This commit is contained in:
uuz.vva
2021-05-03 00:13:14 +08:00
committed by GitHub
parent 092c8af0d1
commit bd5e56abc4

View File

@@ -106,6 +106,7 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: "/pages/auth/login/login" url: "/pages/auth/login/login"
}); });
return;
} }
let couponId = e.currentTarget.dataset.index let couponId = e.currentTarget.dataset.index
@@ -146,4 +147,4 @@ Page({
}); });
this.getCouponList(); this.getCouponList();
} }
}) })