changed init to use $el

This commit is contained in:
klemek
2019-12-06 18:43:16 +01:00
parent 90b9a3bca5
commit 5ad9dee161
+2 -1
View File
@@ -90,9 +90,10 @@ let app = {
}, },
'mounted': () => { 'mounted': () => {
const self = this;
console.log('app mounted'); console.log('app mounted');
setTimeout(() => { setTimeout(() => {
document.getElementById('app').setAttribute('style', ''); self.$el.setAttribute('style', '');
}); });
} }
}; };