fix eslint

This commit is contained in:
梁灏 2018-08-28 09:51:28 +08:00
parent 78b7cd0b28
commit 416414039b

View file

@ -162,17 +162,17 @@
}, },
watch: { watch: {
value () { value () {
this.computeOffset() this.computeOffset();
} }
}, },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.computeOffset() this.computeOffset();
}); });
window.addEventListener('resize', ()=>{ window.addEventListener('resize', ()=>{
this.computeOffset() this.computeOffset();
}) });
} }
}; };
</script> </script>