Skip to content

Commit c2f3fdf

Browse files
committed
fix: firefox, edge result type is object. #85
1 parent d1baa53 commit c2f3fdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/table/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ export default {
129129
...filters
130130
}
131131
))
132-
133132
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
134-
if (result instanceof Promise) {
133+
if (result instanceof Promise || '[object Promise]' === result.toString()) {
135134
result.then(r => {
136135
this.localPagination = Object.assign({}, this.localPagination, {
137136
current: r.pageNo, // 返回结果中的当前分页数

0 commit comments

Comments
 (0)