📜  vue rails turbolink 不加载 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:58.038000             🧑  作者: Mango

代码示例1
// Just remove
document.addEventListener('turbolinks:load', () => {..}
// if you use it, it's not necessary...
// You only have to have:
Vue.use(TurbolinksAdapter)
Vue.use(VueResource);

const app = new Vue({
  el: '#app',
  render: h => h(App)
}).$mount()
document.body.appendChild(app.$el);