From 9c01e9caf0dcc415235473623a3a7e92d1467033 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 9 Feb 2023 17:46:36 +0800 Subject: [PATCH] flag --- src/project/tongren/AppSignIn/AppSignIn.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/project/tongren/AppSignIn/AppSignIn.vue b/src/project/tongren/AppSignIn/AppSignIn.vue index e85ebd5c..4d6483b1 100644 --- a/src/project/tongren/AppSignIn/AppSignIn.vue +++ b/src/project/tongren/AppSignIn/AppSignIn.vue @@ -74,11 +74,12 @@ export default { }, // 打卡 signIn() { - if(this.flag) return + if(this.flag) return; + this.flag = true; - this.flag = true this.$http.post(`/api/appwechatsigninfo/sign`).then(res=> { if(res.code == 0) { + this.flag = false; this.$u.toast(`打卡成功`) this.getToday() this.getList()