Open lmuzquiz opened 3 years ago
plugins: [
{ src:'~plugins/is-allow-body-scroll.js', mode: 'client' },
]
and on the is-allow-body-scroll.js
import Vue from 'vue'
import VBodyScrollLock from 'v-body-scroll-lock'
Vue.use(VBodyScrollLock)
This works well for me
Can you add instructions for Nuxt? I tried to make it work for like 30 mins but couldn't
This was on my plugins folder:
I also registered as a client plugin within nuxt config: