12345678910111213141516171819202122232425262728293031 |
- import { mapGetters, mapMutations } from 'vuex'
- export const tool = {
- computed: {
- ...mapGetters([
- 'activeComponent',
- 'componentsData'
- ])
- },
- methods: {
- ...mapMutations({
- setComponentsData: 'SET_COMPONENTSDATA'
- })
- },
- beforeDestroy(){
- },
- watch: {
- 'activeComponent.componentContent': {
- handler (newVal, oldVal) {
- console.log(newVal)
-
- },
- deep: true
- }
- }
- }
|