window.onresize = () => { return (() => { let currentWidth = (document.documentElement.clientWidth || window.innerWidth) this.$store.commit('SETSCREENWIDTH', currentWidth) })() }