export default {
  computed: {
    showToLoginModel() {
      return this.$store.state.showToLoginModel;
    }
  },
  watch: {
    showToLoginModel(val) {
      if (val) {
        this.$confirm({
          content: "身份验证失效，是否重新登陆?",
          btnStyleSort: true,
          onOk: () => {
            this.$store.commit("setShowToLoginModel", false);
            this.$router.push({ name: "Login" });
          }
        });
      }
    }
  }
};
