Skip to content

Commit fd33711

Browse files
zkwolfsendya
authored andcommitted
fix: s-table in IE keep loading
1 parent 2e51529 commit fd33711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/table/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default {
135135
const result = this.data(parameter)
136136
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
137137
// eslint-disable-next-line
138-
if (result instanceof Promise || '[object Promise]' === result.toString()) {
138+
if ((typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function') {
139139
result.then(r => {
140140
this.localPagination = Object.assign({}, this.localPagination, {
141141
current: r.pageNo, // 返回结果中的当前分页数

0 commit comments

Comments
 (0)