2021-03-10 00:25:11 +00:00
|
|
|
<template lang="html">
|
|
|
|
<div>
|
2021-04-16 20:03:16 +00:00
|
|
|
<pre>{{ userName }}</pre>
|
|
|
|
<!-- TODO: load profile and display it -->
|
2021-03-10 00:25:11 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2021-04-16 20:03:16 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
userName() {
|
|
|
|
return this.$route.params.userName;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.load();
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
load() {
|
|
|
|
// load public profile
|
|
|
|
// console.log(this.userName);
|
|
|
|
// this.$store.dispatch('LOAD_PROFILE', this.userName)
|
|
|
|
// .then((data) => {
|
|
|
|
// console.log('boom');
|
|
|
|
// console.log(data);
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
|
|
</style>
|
|
|
|
|