修复导出错误

This commit is contained in:
gongxh
2021-08-02 12:55:45 +08:00
parent 7308892ff4
commit e1dc65d986

View File

@@ -274,8 +274,8 @@ export const export_col_to_excel = (colums, data, filename) => {
ws[XLSX.utils.encode_cell({ c: _col.left, r: _dataRow })] = v ws[XLSX.utils.encode_cell({ c: _col.left, r: _dataRow })] = v
} else { } else {
if (v) { if (v) {
// if (typeof v == 'Number') t = 'n' if (typeof v == 'number') t = 'n'
// else else
if (typeof v == 'boolean') t = 'b' if (typeof v == 'boolean') t = 'b'
else if (v instanceof Date) { else if (v instanceof Date) {
t = 'd' t = 'd'