Merge pull request #1578 from colinbes/patch-1
Update Chart.vue to trigger on any change to object datapull/1280/head^2
commit
b529fdc272
|
@ -32,8 +32,15 @@ export default {
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
data() {
|
||||
this.reinit();
|
||||
/*
|
||||
* Use deep watch to enable triggering watch for changes within structure
|
||||
* otherwise the entire data object needs to be replaced to trigger watch
|
||||
*/
|
||||
data: {
|
||||
handler() {
|
||||
this.reinit();
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
type() {
|
||||
this.reinit();
|
||||
|
|
Loading…
Reference in New Issue