update at 2026-02-14 13:43:15

This commit is contained in:
douboer@gmail.com
2026-02-14 13:43:15 +08:00
parent 39e1ec1b4c
commit 978d986c13
236 changed files with 41 additions and 111472 deletions

View File

@@ -290,13 +290,13 @@ function buildColumnRenderRows(headers, sourceDataColumn, sourceDescMap, targetD
/**
* 统一错误文案:
* - xlsx 解析能力缺失时,固定提示用户去“构建 npm”
* - xlsx 解析能力缺失时,提示检查内置 vendors 模块
* - 其他错误返回原始 message便于定位
*/
function toFriendlyParseError(error, fallbackMessage) {
const message = error && error.message ? String(error.message) : '';
if (message.indexOf('xlsx 解析') >= 0) {
return message || '当前环境未启用 xlsx 解析,请先在开发者工具执行“构建 npm”';
return message || '当前环境未启用 xlsx 解析,请确认 vendors/xlsx.full.min.js 存在';
}
return message || fallbackMessage;
}