@gingkoo/base-server 0.0.4-alpha.20 → 0.0.4-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -358,8 +358,12 @@ const _excelImportMultisheet2 = async (filePath = '') => {
358
358
  row.eachCell((cell, colNumber) => {
359
359
  let colValue = cell.value;
360
360
 
361
+ if (!colValue && colValue !== 0 && colValue?.result) {
362
+ colValue = colValue.result;
363
+ }
364
+
361
365
  if (rowNumber == 1) {
362
- sheetInfo.header.push(colValue);
366
+ sheetInfo.header[colNumber - 1] = colValue;
363
367
  } else {
364
368
  rowData[colNumber - 1] = colValue;
365
369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gingkoo/base-server",
3
- "version": "0.0.4-alpha.20",
3
+ "version": "0.0.4-alpha.22",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {