chore: update deps

This commit is contained in:
kailong321200875
2022-08-20 09:55:04 +08:00
parent 19719b432c
commit 816eba39f1
3 changed files with 15 additions and 15 deletions

View File

@@ -63,11 +63,11 @@ const initQrcode = async () => {
options.errorCorrectionLevel || getErrorCorrectionLevel(unref(renderText))
const _width: number = await getOriginWidth(unref(renderText), options)
options.scale = props.width === 0 ? undefined : (props.width / _width) * 4
const canvasRef: HTMLCanvasElement = await toCanvas(
const canvasRef = (await toCanvas(
unref(wrapRef) as HTMLCanvasElement,
unref(renderText),
options
)
)) as unknown as HTMLCanvasElement
if (props.logo) {
const url = await createLogoCode(canvasRef)
emit('done', url)