Showing
2 changed files
with
2 additions
and
2 deletions
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | tab: 'brand' | 65 | tab: 'brand' |
66 | } | 66 | } |
67 | }).then(data => { | 67 | }).then(data => { |
68 | - if ($.isEmptyObject(data)) { | 68 | + if ($.isEmptyObject(data) || data.pageTotal === 0) { |
69 | _this.busy = true; | 69 | _this.busy = true; |
70 | } else { | 70 | } else { |
71 | if (data.pageTotal && _this.page === data.pageTotal) { | 71 | if (data.pageTotal && _this.page === data.pageTotal) { |
@@ -69,7 +69,7 @@ | @@ -69,7 +69,7 @@ | ||
69 | page: ++_this.page | 69 | page: ++_this.page |
70 | } | 70 | } |
71 | }).then(data => { | 71 | }).then(data => { |
72 | - if ($.isEmptyObject(data)) { | 72 | + if ($.isEmptyObject(data) || data.pageTotal === 0) { |
73 | _this.busy = true; | 73 | _this.busy = true; |
74 | } else { | 74 | } else { |
75 | if (_this.page === data.pageTotal) { | 75 | if (_this.page === data.pageTotal) { |
-
Please register or login to post a comment