Skip to content

Commit 3c76e12

Browse files
committed
use profile/view/uid when viewing user
1 parent 651238b commit 3c76e12

File tree

1 file changed

+2
-3
lines changed
  • frontend/src/components/app/users

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ export default {
3333
},
3434
},
3535
async beforeMount() {
36-
const userRequest = await this.$http.get(`/users/${this.$route.params.id}`);
37-
this.user = userRequest.data;
38-
console.log(this.user);
36+
const userRequest = await this.$http.get(`/profile/view/${this.$route.params.id}`);
37+
this.user = userRequest.data.profile;
3938
},
4039
};
4140
</script>

0 commit comments

Comments
 (0)