We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9212948 + 9aceabb commit 828494bCopy full SHA for 828494b
frontend/src/components/app/users/User.vue
@@ -32,6 +32,12 @@ export default {
32
this.$router.go(-1);
33
},
34
35
+ watch: {
36
+ async $route() {
37
+ const userRequest = await this.$http.get(`/profile/view/${this.$route.params.id}`);
38
+ this.user = userRequest.data.profile;
39
+ },
40
41
async beforeMount() {
42
const userRequest = await this.$http.get(`/profile/view/${this.$route.params.id}`);
43
this.user = userRequest.data.profile;
0 commit comments