How to handle resize event in Nuxt JS