| | |
| | | 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() |
| | |
| | | // 检查是否有redirect参数指定跳转页面 |
| | | let redirectUrl = this.getUrlParam("redirect"); |
| | | |
| | | // 如果没有redirect参数,检查是否有保存的目标页面 |
| | | if (!redirectUrl) { |
| | | const { getTargetUrl } = require('@/utils/auth') |
| | | redirectUrl = getTargetUrl() |
| | | } |
| | | |
| | | if (redirectUrl) { |
| | | // 解码redirect参数 |
| | | redirectUrl = decodeURIComponent(redirectUrl); |