mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
vue_visgraph: add a mechanism to force update component
cfr. https://medium.com/emblatech/ways-to-force-vue-to-re-render-a-component-df866fbacf47
This commit is contained in:
parent
9609fcb5d3
commit
a20eeb6a34
@ -66,6 +66,11 @@ export default {
|
|||||||
|
|
||||||
// Instanciate vis objects in window variables, see vis-network.js
|
// Instanciate vis objects in window variables, see vis-network.js
|
||||||
window.network = new vis.Network(this.container, this.visgraph_data, window.options ) // A
|
window.network = new vis.Network(this.container, this.visgraph_data, window.options ) // A
|
||||||
|
},
|
||||||
|
forceUpdateComponent() {
|
||||||
|
console.log('forceUpdateComponent - method 3')
|
||||||
|
this.$forceUpdate()
|
||||||
|
this.refreshNetwork
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user