From 1d37c375fd114212ee1419c3bbdadc81d76666a4 Mon Sep 17 00:00:00 2001
From: yearning <10538594+wangweifeng1999@user.noreply.gitee.com>
Date: 星期四, 03 九月 2026 18:01:59 +0800
Subject: [PATCH] 优化
---
src/views/h5/login/redirect.vue | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/views/h5/login/redirect.vue b/src/views/h5/login/redirect.vue
index f1aebc2..6f7d61f 100644
--- a/src/views/h5/login/redirect.vue
+++ b/src/views/h5/login/redirect.vue
@@ -53,7 +53,7 @@
this.redirectUrl()
this.redirectCount = localStorage.getItem('weChatRedirectCount') || 0
this.redirectCount = Number(this.redirectCount) + 1
- localStorage.setItem('weChatRedirectCount', redirectCount)
+ localStorage.setItem('weChatRedirectCount', this.redirectCount)
}
},
methods: {
@@ -103,9 +103,7 @@
})
}
} else {
- setTimeout(() => {
- this.$router.replace({ path: '/h5/noTask', query: { tip: res.data.msg }})
- }, 1000)
+ this.$router.replace({ path: '/h5/noTask', query: { tip: res.data.msg }})
}
})
}
--
Gitblit v1.8.0