Skip to content

Commit

Permalink
fix Object.keys(query).filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Sep 24, 2018
1 parent 25fa104 commit 8238995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/el-data-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,10 @@ export default {
url += `page=${this.page}&size=${size}`
// query 有可能值为 0
// TODO Object.values IE11不兼容, 暂时使用Object.keys
let params = Object.keys(query)
.filter(k => {
return k !== '' && k !== null && k !== undefined
return query[k] !== '' && query[k] !== null && query[k] !== undefined
})
.reduce(
(params, k) =>
Expand Down

0 comments on commit 8238995

Please sign in to comment.