We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e51529 commit fd33711Copy full SHA for fd33711
src/components/table/index.js
@@ -135,7 +135,7 @@ export default {
135
const result = this.data(parameter)
136
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
137
// eslint-disable-next-line
138
- if (result instanceof Promise || '[object Promise]' === result.toString()) {
+ if ((typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function') {
139
result.then(r => {
140
this.localPagination = Object.assign({}, this.localPagination, {
141
current: r.pageNo, // 返回结果中的当前分页数
0 commit comments