|
@@ -425,10 +425,10 @@ export const exportWordHandler = async (type: EXPORT_WORD_ENUM, data: Record<any
|
|
|
// excel 需要判断表格中是否需要图片
|
|
|
if (!item.templateName ? item.options?.sheetFilter.includes('thumb') : good.thumb) {
|
|
|
try {
|
|
|
- good.thumb = await getBase64Sync(
|
|
|
- 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
|
|
|
- )
|
|
|
- // good.thumb = await getBase64Sync(baseURL + good.thumb)
|
|
|
+ // good.thumb = await getBase64Sync(
|
|
|
+ // 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
|
|
|
+ // )
|
|
|
+ good.thumb = await getBase64Sync(baseURL + good.thumb)
|
|
|
} catch (err) {
|
|
|
console.log('thumb conversion to base64 faild:', err)
|
|
|
good.thumb = ''
|