app/javascript/vue/tasks/graph/object_graph/main.js
import { createApp } from 'vue'
import App from './app.vue'
function initApp (element) {
const app = createApp(App)
app.mount(element)
}
document.addEventListener('turbolinks:load', () => {
const el = document.querySelector('#object_graph_task')
if (el) { initApp(el) }
})