mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 02:44:42 +00:00
User authentication fix
This commit is contained in:
@@ -144,13 +144,17 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
await this.addSearchParam(this.$route.query);
|
||||
},
|
||||
watch: {
|
||||
'$route.query'(value) {
|
||||
this.addSearchParam(value);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -150,6 +150,11 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
|
||||
const id = this.$route.params.id;
|
||||
|
||||
if (id === undefined)
|
||||
|
||||
@@ -81,6 +81,12 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user