yearning
20 小时以前 1d37c375fd114212ee1419c3bbdadc81d76666a4
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: {
@@ -86,11 +86,11 @@
          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({ 
@@ -103,7 +103,7 @@
            })
          }
        } else {
          this.$message.error(res.data.msg)
          this.$router.replace({ path: '/h5/noTask', query: { tip: res.data.msg }})
        }
      })
    }