fix: eslint

This commit is contained in:
xingyu4j
2022-12-14 15:06:56 +08:00
parent 45a9a5a356
commit 753d8dda73
5 changed files with 9 additions and 10 deletions

View File

@ -64,7 +64,7 @@ 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: HTMLCanvasElement | any = await toCanvas(
unref(wrapRef) as HTMLCanvasElement,
unref(renderText),
options