wlzboy
4 天以前 cfe0b79fbea0fb1d7a5a796e71ada7d3b7812046
app/pages/login.vue
@@ -93,9 +93,13 @@
    onLoad(options) {
      // 保存页面参数
      this.pageOptions = options || {}
      if(isWxWorkEnvironment()){
        redirectToQyLogin(options,this.$tab);
      }
      isWxWorkEnvironment().then(res=>{
        if(res){
          // console.log("企业微信环境 login.vue....")
          redirectToQyLogin(options,this.$tab);
        }
      });
    },
    created() {
      this.getCode()
@@ -336,6 +340,12 @@
          // 检查是否有redirect参数指定跳转页面
          let redirectUrl = this.getUrlParam("redirect");
          
          // 如果没有redirect参数,检查是否有保存的目标页面
          if (!redirectUrl) {
            const { getTargetUrl } = require('@/utils/auth')
            redirectUrl = getTargetUrl()
          }
          if (redirectUrl) {
            // 解码redirect参数
            redirectUrl = decodeURIComponent(redirectUrl);