| | |
| | | return {}; |
| | | }, |
| | | mounted() { |
| | | this.$router.push("/index"); |
| | | // this.getQueryString("focus-open-code"); |
| | | // if ( |
| | | // window.location.href.match(/=(\S*)#/) && |
| | | // window.location.href.match(/=(\S*)#/)[1] != "" |
| | | // ) { |
| | | // this.passFree(); |
| | | // } |
| | | // 测试版本免登录 |
| | | this.$router.push("/home"); |
| | | |
| | | // // 京办免密登录(url带参"focus-open-code") |
| | | // if (this.$route.query["focus-open-code"]) { |
| | | // this.passJBFree(); |
| | | // } |
| | | // // 正式版第三方登录 |
| | | // this.getQueryString("focus-open-code"); |
| | | }, |
| | | |
| | | methods: { |
| | | getQueryString(name) { |
| | | this.$router.push("/index"); |
| | | // var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | // var r = window.location.search.substr(1).match(reg); |
| | | // if (r != null) { |
| | | // this.$router.push("/index"); |
| | | // } |
| | | // return null; |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) { |
| | | this.$router.push("/home"); |
| | | } |
| | | return null; |
| | | }, |
| | | // 京办免密登录 |
| | | // passJBFree() { |
| | | // // this.$router.push("/index"); |
| | | // }, |
| | | }, |
| | | }; |
| | | </script> |