fix profile display
This commit is contained in:
@ -112,7 +112,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapActions({
|
||||
load: 'profile/load'
|
||||
loadProfile: 'profile/load',
|
||||
clearStore: 'profile/clear',
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
@ -126,8 +127,11 @@ export default {
|
||||
},
|
||||
async created() {
|
||||
const id = parseInt(this.$route.params.memberId, 10)
|
||||
this.load(id)
|
||||
}
|
||||
this.loadProfile(id)
|
||||
},
|
||||
unmounted() {
|
||||
this.clearStore()
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user