export default { data () { return { isFixed: true } }, mounted () { window.addEventListener('scroll', this.scroll, false) }, destroyed () { window.removeEventListener('scroll', this.scroll, false) }, methods: { scroll () { if (document.body.scrollTop…