fix: bug in the redirect after login

This commit is contained in:
mahyargdz
2024-11-04 10:16:39 +03:30
parent 5a5afb03be
commit 08ed094703
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
data: this.login data: this.login
}) })
.then(response => { .then(response => {
window.location.replace('/admin') window.location.replace(window.location.origin + "/admin/users" )
}) })
.catch(err => { .catch(err => {
if (err.response.status === 422) this.validation = err.response.data.validation if (err.response.status === 422) this.validation = err.response.data.validation