logout.js 258 B

123456789101112
  1. import { removeToken } from "@/auth/auth";
  2. import Vue from "vue";
  3. Vue.mixin({
  4. methods: {
  5. logout(cause = "") {
  6. removeToken();
  7. // window._hmt.push(["_trackEvent", "退出", cause]);
  8. this.$router.push("/login" + cause);
  9. },
  10. },
  11. });