Untitled

 avatar
unknown
plain_text
2 months ago
268 B
4
Indexable
  methods: {
    // Metodă pentru logout
    handleLogout() {
      // Ștergem tokenul din localStorage
      localStorage.removeItem("authToken");
      // Redirecționăm utilizatorul către pagina principală
      this.$router.push({ name: 'Home' });
    },
  },
Editor is loading...
Leave a Comment