Crash plugin after reload page nuxt
Dradzmar opened this issue · 0 comments
Dradzmar commented
When I go to the page through Nuxt-rout everything is fine, the plugin works as it should, but after reloading the page, the plugin stops working correctly.
Use with
template:
<affix relative-element-selector=".hold">
<sidebar></sidebar>
</affix>
plugin:
import Vue from 'vue'
import Affix from 'vue-affix'
Vue.use(Affix)
nuxt.config
plugins: [
{
src: '~plugins/vue-affix.js',
ssr: false
],
build: {
transpile: ['vue-affix']
}