| | |
| | | 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) |
| | | setTimeout(() => { |
| | | this.$router.replace({ path: '/h5/noTask', query: { tip: res.data.msg }}) |
| | | }, 1000) |
| | | } |
| | | }) |
| | | } |