diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index fc1ec8a455ee2fc3effb8fbdf7d4d4232981f1c1..4cff2857d50379d842b9db94c6de81ce46c96910 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -3925,7 +3925,7 @@ async function preview(context: featureAbility.Context, cameraInfo: camera.Camer const cameraInput: camera.CameraInput = cameraManager.createCameraInput(cameraInfo) const previewOutput: camera.PreviewOutput = await cameraManager.createDeferredPreviewOutput(previewProfile); const photoOutput: camera.PhotoOutput = cameraManager.createPhotoOutput(photoProfile); - const session: camera.CaptureSession = await this.mCameraManager.createCaptureSession(); + const session: camera.CaptureSession = await cameraManager.createCaptureSession(); session.beginConfig(); session.addInput(cameraInput); session.addOutput(previewOutput); @@ -4666,7 +4666,7 @@ off(type: 'quickThumbnail', callback?: AsyncCallback\): void ```ts function unregisterQuickThumbnail(photoOutput: camera.PhotoOutput): void { - this.photoOutput.off('quickThumbnail'); + photoOutput.off('quickThumbnail'); } ```