Skip to content

Commit 9aceabb

Browse files
committed
visit user in notification while browsing another user
1 parent 9212948 commit 9aceabb

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)