[Vuejs]-Vuejs trying to disable the global component of navbar and footerbar when on certain route

0๐Ÿ‘

โœ…

I solved the problem, the HeaderBar part is correct FooterBar part was not working. Did the same as I did with the HeaderBar, and it was working. Also did not notice on deployment the route changes from โ€˜/pageโ€™ to โ€˜/โ€™page/โ€™.

0๐Ÿ‘

Try replacing this.$route.path with this.$nuxt.$route.path.

Also I would suggest to write it like so:

this.FooterHide = this.$nuxt.$route.path === '/page' ? false : true

or even

this.FooterHide = this.$nuxt.$route.path !== '/page'

Leave a comment