Skip to content

Commit

Permalink
fix: s-table in IE keep loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf authored and sendya committed Mar 20, 2019
1 parent 2e51529 commit fd33711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
const result = this.data(parameter)
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
// eslint-disable-next-line
if (result instanceof Promise || '[object Promise]' === result.toString()) {
if ((typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function') {
result.then(r => {
this.localPagination = Object.assign({}, this.localPagination, {
current: r.pageNo, // 返回结果中的当前分页数
Expand Down

0 comments on commit fd33711

Please sign in to comment.