ZZJ
2022-03-22 81c9b1f75b80fade52653243b914ccb2677b4a8f
src/pages/index/App.vue
@@ -55,6 +55,14 @@
} from "./api";
export default {
  created() {
    window.addEventListener("keydown", (event) => {
      if (event.keyCode === 9) {
        console.log("tabfalse13");
        event.preventDefault();
      }
    });
  },
  mounted() {
    this.getInitInfo();
    let message = "网络正常";
@@ -139,9 +147,13 @@
      this.$refs["carousel"].next();
    },
    async getInitInfo() {
      const res = await getInitInfo();
      const res = await getInitInfo().catch((err) => {
        this.isWhite = false;
      });
      if (res.data.initPwd && !res.data.initRegInfo) {
      console.log(res);
      if (res.data && res.data.initPwd && !res.data.initRegInfo) {
        const res1 = await getRegInfo();
        this.active = 1;
        console.log(res1);
@@ -150,7 +162,7 @@
        }, 0);
      }
      if (res.data.initPwd && res.data.initRegInfo) {
      if (res.data && res.data.initPwd && res.data.initRegInfo) {
        location.assign("/view/login/");
        return;
      }
@@ -158,6 +170,12 @@
      this.isWhite = false;
    },
  },
  destroyed() {
    window.removeEventListener("keydown", (event) => {
      console.log(event.value);
      event.preventDefault();
    });
  },
};
</script>