src/views/qiandao/index.vue
@@ -43,21 +43,21 @@
    return {
      tabs: "",
      userName: "",
      activeName: "first",
      activeName: "first"
    };
  },
  components: {
    tables,
    forms,
    signIn,
    signIn
  },
  computed: {
    ...mapGetters(["userInfo"]),
    ...mapGetters(["userInfo"])
  },
  watch: {
    userInfo() {
      // console.log(userInfo);
    },
    }
  },
  mounted() {
    this.userName = this.userInfo.account;
@@ -70,15 +70,15 @@
      this.$confirm(this.$t("logoutTip"), this.$t("tip"), {
        confirmButtonText: this.$t("submitText"),
        cancelButtonText: this.$t("cancelText"),
        type: "warning",
        type: "warning"
      }).then(() => {
        this.$store.dispatch("LogOut").then(() => {
          resetRouter();
          this.$router.push({ path: "/login" });
        });
      });
    },
  },
    }
  }
};
</script>
<style lang="scss">
@@ -153,4 +153,4 @@
    }
  }
}
</style>
</style>