1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| <template>
| <div class="container"></div>
| </template>
|
| <script>
| export default {
| name: "login",
| data() {
| return {};
| },
| mounted() {
| this.getQueryString("focus-open-code");
| // if (
| // window.location.href.match(/=(\S*)#/) &&
| // window.location.href.match(/=(\S*)#/)[1] != ""
| // ) {
| // this.passFree();
| // }
| // console.log(1);
|
| // // 京办免密登录(url带参"focus-open-code")
| // if (this.$route.query["focus-open-code"]) {
| // this.passJBFree();
| // }
| },
|
| methods: {
| getQueryString(name) {
| var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
| var r = window.location.search.substr(1).match(reg);
| if (r != null) {
| this.$router.push("/index");
| }
| return null;
| },
| // 京办免密登录
| // passJBFree() {
| // // this.$router.push("/index");
| // },
| },
| };
| </script>
|
|