Skip to content

Commit

Permalink
feat: 保存图片异步
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Jun 20, 2022
1 parent 2601647 commit 8efb7e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/canvas/multi-img.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export async function mergeMultiCanvasPic({
const img = imgs[i]
const savePath = getSavePath(i)

saveBase64ImgToFile({
// eslint-disable-next-line no-await-in-loop
await saveBase64ImgToFile({
fs,
imgUrl: img,
savePath,
Expand Down

0 comments on commit 8efb7e4

Please sign in to comment.