北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
1
lixuliang
2024-01-25 e411218c649acd94703557421d364e8a6567924b
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.$router.push("/index");
    // this.getQueryString("focus-open-code");
    // if (
    //   window.location.href.match(/=(\S*)#/) &&
    //   window.location.href.match(/=(\S*)#/)[1] != ""
    // ) {
    //   this.passFree();
    // }
 
    // // 京办免密登录(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>