Skip to content

Commit

Permalink
fixing error navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
sulfanoaf committed Apr 8, 2021
1 parent b82e62e commit 0f28317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/js/layout/admin/header/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default {
.logout()
.then((response) => {
localStorage.clear();
this.$router.push({ name: "Login" });
this.$router.push({ name: "AuthLogin" });
})
.catch((error) => {
this.$vs.notify({
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/pages/auth/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default {
.then((response) => {
this.$closeLoader()
if (response.data.accessToken) {
this.$router.push({ name: "Login" });
this.$router.push({ name: "AuthLogin" });
} else {
this.$router.push({
name: "AuthVerify",
Expand Down

0 comments on commit 0f28317

Please sign in to comment.