fix profile display

This commit is contained in:
2021-10-10 19:41:45 +02:00
parent 8c8021bedc
commit 3ea7eb48b4
2 changed files with 16 additions and 9 deletions

View File

@ -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>