Skip to content

Commit 828494b

Browse files
authored
Merge pull request #416 from Seluj78/408-notification-while-on-user
visit user in notification while browsing another user
2 parents 9212948 + 9aceabb commit 828494b

File tree

1 file changed

+6
-0
lines changed
  • frontend/src/components/app/users

1 file changed

+6
-0
lines changed

frontend/src/components/app/users/User.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export default {
3232
this.$router.go(-1);
3333
},
3434
},
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+
},
3541
async beforeMount() {
3642
const userRequest = await this.$http.get(`/profile/view/${this.$route.params.id}`);
3743
this.user = userRequest.data.profile;

0 commit comments

Comments
 (0)