@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.
- package/backend/utils/excel.js +5 -1
- package/package.json +1 -1
package/backend/utils/excel.js
CHANGED
|
@@ -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
|
|
366
|
+
sheetInfo.header[colNumber - 1] = colValue;
|
|
363
367
|
} else {
|
|
364
368
|
rowData[colNumber - 1] = colValue;
|
|
365
369
|
}
|