瀏覽代碼

Update formatSvgToImg.ts

lex 1 年之前
父節點
當前提交
3878353413
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/accompany/formatSvgToImg.ts

+ 2 - 0
src/views/accompany/formatSvgToImg.ts

@@ -38,6 +38,8 @@ let canvas = null as any
 export const svgtopng = async (svg: any, width: any, height: any) => {
 
   if (!canvas) {
+    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+    // @ts-ignore
     canvas = new OffscreenCanvas(width, height)
   }