Commit 22cea4e6 authored by njleonzhang's avatar njleonzhang

fix bug: default sort doesnot dismiss

parent 203bc070
......@@ -197,13 +197,17 @@ export default {
this.$nextTick(_ => {
for (let i = 0, length = this.columns.length; i < length; i++) {
if (this.columns[i].property === this.defaultSortProp) {
this.columns[i].order = this.defaultSortOrder;
let column = this.columns[i];
if (column.property === this.defaultSortProp) {
column.order = this.defaultSortOrder;
states.sortingColumn = column;
break;
}
}
this.store.commit('changeSortCondition');
if (states.sortingColumn) {
this.store.commit('changeSortCondition');
}
});
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment