data() {
return {
showClass: true
};
},
methods: {
changeClass() {
if (!this.$store.state.isOverlay) {
setTimeout(() => {
this.showClass = true;
}, 1000);
} else {
this.showClass = false;
}
}
},
watch: {
'$store.state.isOverlay': {
handler() {
this.changeClass();
}
}
}
:class="{ 'scroll-y': showClass }"
[ ...(acc[n.learning_group.id] || []), n ]