mirror of https://github.com/ElemeFE/element
fix bug: default-sort-prop is not defined but trigger sort-change event
parent
48996c6658
commit
59d1f49b1c
|
@ -190,6 +190,7 @@ export default {
|
|||
},
|
||||
|
||||
mounted() {
|
||||
if (this.defaultSortProp) {
|
||||
const states = this.store.states;
|
||||
states.sortProp = this.defaultSortProp;
|
||||
states.sortOrder = this.defaultSortOrder;
|
||||
|
@ -204,6 +205,7 @@ export default {
|
|||
|
||||
this.store.commit('changeSortCondition');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
|
Loading…
Reference in New Issue