diff --git a/docs/component/canvas.md b/docs/component/canvas.md index 31864c12a9a0300f966775aa26a107f326a0ce0e..3e9de67c5d03fa3aa81a907e559ad877abc10dda 100644 --- a/docs/component/canvas.md +++ b/docs/component/canvas.md @@ -63,7 +63,7 @@ canvas相关的API非常多,参考如下: // 异步调用方式, 跨平台写法 uni.createCanvasContextAsync({ id: 'canvas', - component: this, + component: getCurrentInstance().proxy, success: (context : CanvasContext) => { const canvasContext = context.getContext('2d')!; const canvas = canvasContext.canvas;