mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Update index.js
This commit is contained in:
parent
c6438668f2
commit
b00d5f6adb
@ -178,7 +178,7 @@ export const imgToDataUrl = (src) => {
|
||||
// 图片绘制到canvas里
|
||||
ctx.drawImage(img, 0, 0, img.width, img.height)
|
||||
resolve(canvas.toDataURL())
|
||||
} catch (error) {
|
||||
} catch (e) {
|
||||
reject(e)
|
||||
}
|
||||
}
|
||||
@ -243,4 +243,4 @@ export const asyncRun = (taskList, callback = () => {}) => {
|
||||
}, 0)
|
||||
}
|
||||
loop()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user