Browse Source

导出无数据时展示 -

master
zmh 2 years ago
parent
commit
5ca8d4133d
  1. 2
      api/app/lib/utils/xlsxDownload.js

2
api/app/lib/utils/xlsxDownload.js

@ -59,7 +59,7 @@ module.exports = function (app, opts) {
indexCell.style = headerStyle indexCell.style = headerStyle
for (let h of header) { for (let h of header) {
const cell = row.addCell(); const cell = row.addCell();
cell.value = data[i][h.key] || h.defaultValue || ''; cell.value = data[i][h.key] || h.defaultValue || '-';
cell.style = style cell.style = style
} }
} }

Loading…
Cancel
Save