We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1042a3c commit edff46eCopy full SHA for edff46e
1 file changed
Client/src/modules/auth/Login.vue
@@ -89,12 +89,16 @@ export default {
89
password: this.password
90
})
91
.then(_ => {
92
- if (this.ret && !this.$route.path.startsWith(this.ret))
93
- this.$router.replace(this.ret);
94
- else this.$router.replace({ name: "Home" });
+ try {
+ if (this.ret && this.$route.name !== "Home")
+ this.$router.replace(this.ret);
95
+ else this.$router.replace({ name: "Home" });
96
+ } catch (_) {
97
+ this.$router.replace({ name: "Home" });
98
+ }
99
100
.catch(error => {
- console.log(error);
101
+ console.log(error);
102
this.submitting = false;
103
this.$errorNotify(error);
104
});
0 commit comments