| | |
| | | this.redirectUrl() |
| | | this.redirectCount = localStorage.getItem('weChatRedirectCount') || 0 |
| | | this.redirectCount = Number(this.redirectCount) + 1 |
| | | localStorage.setItem('weChatRedirectCount', redirectCount) |
| | | localStorage.setItem('weChatRedirectCount', this.redirectCount) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | const resData = res.data.data || {} |
| | | if (resData.userId) { |
| | | tokenUtils.setTokens(resData.accessToken, resData.refreshToken) |
| | | const path = localStorage.getItem('verify_url') |
| | | const path = localStorage.getItem('_enterUrl') |
| | | if (path) { |
| | | this.$router.replace(path) |
| | | } else { |
| | | this.$router.replace('/h5/noVerAccess') |
| | | this.$message.error('参数异常,请重新扫码或联系管理员') |
| | | } |
| | | } else { |
| | | this.$router.replace({ |
| | |
| | | }) |
| | | } |
| | | } else { |
| | | this.$message.error(res.data.msg) |
| | | this.$router.replace({ path: '/h5/noTask', query: { tip: res.data.msg }}) |
| | | } |
| | | }) |
| | | } |