修正table render的组件中无法获取this.$store的问题
在table的render中生成的组件,组件内部无法通过this.$store来获取vuex对象
This commit is contained in:
parent
13a940ee86
commit
8f69e63c77
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@
|
|||
},
|
||||
components: components
|
||||
});
|
||||
if ($parent.$store != undefined) {
|
||||
component.$store = $parent.$store;
|
||||
}
|
||||
component.row = this.row;
|
||||
component.column = this.column;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue