mirror of
https://github.com/romancm/gamebrary
synced 2025-02-17 11:38:24 +00:00
Linter fixes
This commit is contained in:
parent
88d0acbfe5
commit
003cf81e9e
1 changed files with 7 additions and 6 deletions
|
@ -190,25 +190,26 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.initGrid();
|
||||
},
|
||||
|
||||
watch: {
|
||||
view(value) {
|
||||
view() {
|
||||
this.initGrid();
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.initGrid();
|
||||
},
|
||||
|
||||
methods: {
|
||||
initGrid() {
|
||||
if (this.view === 'grid') {
|
||||
this.$nextTick(() => {
|
||||
// eslint-disable-next-line
|
||||
new Masonry(`.game-grid-${this.listIndex}`, {
|
||||
itemSelector: '.game-card',
|
||||
gutter: 4,
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue