mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 20:23:06 +00:00
fix board placeholder
This commit is contained in:
parent
a16eaf3c27
commit
1c03353bc9
1 changed files with 13 additions and 1 deletions
|
@ -33,8 +33,20 @@ export default {
|
|||
Placeholder,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
board: {},
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['board']),
|
||||
...mapState(['boards']),
|
||||
},
|
||||
|
||||
mounted() {
|
||||
const boardId = this.$route.params.id;
|
||||
|
||||
this.board = this.boards.find(({ id }) => id === boardId);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue