|
@@ -329,6 +329,14 @@ const initPreview = async () => {
|
|
|
} else {
|
|
} else {
|
|
|
sheetData[i.colCode] = val;
|
|
sheetData[i.colCode] = val;
|
|
|
}
|
|
}
|
|
|
|
|
+ // 后端已将图片路径值处理为背景图片,跳过避免文字覆盖
|
|
|
|
|
+ if (trimmed.endsWith('.jpg') || trimmed.endsWith('.png')) {
|
|
|
|
|
+ sheetData[i.colCode] = null;
|
|
|
|
|
+ } else if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
|
|
|
|
|
+ try { sheetData[i.colCode] = JSON.parse(val); } catch { sheetData[i.colCode] = val; }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ sheetData[i.colCode] = val;
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
sheetData[i.colCode] = val;
|
|
sheetData[i.colCode] = val;
|
|
|
}
|
|
}
|