Skip to content

Commit 903ae12

Browse files
committed
修复分页问题
1 parent 6ec620d commit 903ae12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-gray-webui/src/utils/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ service.interceptors.response.use(
7171
res.resHeaders = response.headers
7272
const total = response.headers['x-total-count']
7373
if (total !== undefined && total !== null) {
74-
const data = { 'total': total, 'items': response.data.data }
74+
const data = { 'total': parseInt(total), 'items': response.data.data }
7575
res.data = data
7676
}
7777
return res

0 commit comments

Comments
 (0)