|
@@ -266,6 +266,8 @@ const initPreview = async () => {
|
|
|
// sheetData[i.colCode] = null;
|
|
// sheetData[i.colCode] = null;
|
|
|
} else if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
|
|
} else if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
|
|
|
try { sheetData[i.colCode] = JSON.parse(val); } catch { sheetData[i.colCode] = val; }
|
|
try { sheetData[i.colCode] = JSON.parse(val); } catch { sheetData[i.colCode] = val; }
|
|
|
|
|
+ } else if (val == 'false' || val == 'true') {
|
|
|
|
|
+ sheetData[i.colCode] = val == 'true' ? 'true' : null;
|
|
|
} else {
|
|
} else {
|
|
|
sheetData[i.colCode] = val;
|
|
sheetData[i.colCode] = val;
|
|
|
}
|
|
}
|
|
@@ -326,6 +328,8 @@ const initPreview = async () => {
|
|
|
} catch {
|
|
} catch {
|
|
|
sheetData[i.colCode] = val;
|
|
sheetData[i.colCode] = val;
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (val == 'false' || val == 'true') {
|
|
|
|
|
+ sheetData[i.colCode] = val == 'true' ? 'true' : null;
|
|
|
} else {
|
|
} else {
|
|
|
sheetData[i.colCode] = val;
|
|
sheetData[i.colCode] = val;
|
|
|
}
|
|
}
|