vue_visgraph: manage vis objects with window variables to avoid conflict between vis and vue

This commit is contained in:
2021-10-22 12:57:44 +02:00
parent 6ff80be88d
commit 83d91e61cb
3 changed files with 57 additions and 48 deletions

View File

@@ -3,16 +3,14 @@ import { store } from "./store.js"
import { _createI18n } from 'ChillMainAssets/vuejs/_js/i18n'
import { visMessages } from './i18n'
import App from './App.vue'
import './vis-network'
const i18n = _createI18n(visMessages)
const container = document.getElementById('relationship-graph')
const persons = JSON.parse(container.dataset.persons)
persons.forEach(person => {
store.dispatch('addPerson', person)
//store.dispatch('fetchInfoForPerson', person)
})
const app = createApp({