We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1baa53 commit c2f3fdfCopy full SHA for c2f3fdf
src/components/table/index.js
@@ -129,9 +129,8 @@ export default {
129
...filters
130
}
131
))
132
-
133
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
134
- if (result instanceof Promise) {
+ if (result instanceof Promise || '[object Promise]' === result.toString()) {
135
result.then(r => {
136
this.localPagination = Object.assign({}, this.localPagination, {
137
current: r.pageNo, // 返回结果中的当前分页数
0 commit comments