Skip to content

Commit

Permalink
fix: 临时处理(导入PPTX文件带来的异常数据,#255
Browse files Browse the repository at this point in the history
  • Loading branch information
pipipi-pikachu committed Mar 9, 2024
1 parent 49a0332 commit 17ab32a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ export default () => {
else if (el.type === 'shape') {
if (el.special) {
const svgRef = document.querySelector(`.thumbnail-list .base-element-${el.id} svg`) as HTMLElement
if (svgRef.clientWidth < 1 || svgRef.clientHeight < 1) continue // 临时处理(导入PPTX文件带来的异常数据)
const base64SVG = svg2Base64(svgRef)

const options: pptxgen.ImageProps = {
Expand Down

0 comments on commit 17ab32a

Please sign in to comment.