|
@@ -46,8 +46,8 @@ export function gridInvokeBuild(scope, grid, config, dataSource, reloadParams =
|
|
|
},
|
|
|
listeners: {
|
|
|
load: function (store, records, successful, operation) {
|
|
|
- const rep = operation.getResponse().responseJson
|
|
|
- me.exportExcelTotal = rep.pagination?.total || rep.data?.length || 0
|
|
|
+ const rep = operation.getResponse()?.responseJson
|
|
|
+ me.exportExcelTotal = rep?.pagination?.total || rep?.data?.length || 0
|
|
|
if (isExcelExport) {
|
|
|
if (typeof excelExportCallBack === 'function') {
|
|
|
excelExportCallBack(rep);
|