fixed(table): sonarqube code smell bug

This commit is contained in:
JiwenBai 2019-12-16 16:18:02 +08:00
parent c69f72d5a8
commit 30df7f8e43

View File

@ -911,9 +911,9 @@ export default {
}
}
if (type !== 0) {
Object.keys(this.sortIndexs).forEach(key => {
if (key !== column.key) {
this.sortIndexs[key] = 0
Object.keys(this.sortIndexs).forEach(sorterKey => {
if (sorterKey !== column.key) {
this.sortIndexs[sorterKey] = 0
}
})
}