watch: {
processes: {
handler() {
this.init();
this.$refs.editor.reInit();
},
deep: true,
},
conditionsIds: {
handler() {
this.init();
this.$refs.editor.reInit();
},
deep: true,
},
activeDialog: {
handler() {
this.init();
this.$refs.editor.reInit();
},
deep: true,
},
variables: {
handler() {
this.init();
this.$refs.editor.reInit();
},
deep: true,
},
},
mounted() {
this.$watch(vm => [vm.processes, vm.conditionsIds, vm.activeDialog, vm.variables], value => {
this.init();
this.$refs.editor.reInit();
}, {
immediate: true,
deep: true
})
}