From ae99bfaf730f359f7ebc02a5413682529feacb4b Mon Sep 17 00:00:00 2001 From: mali Date: Fri, 25 Nov 2022 11:12:15 +0800 Subject: [PATCH] Camera data captureSession case synchronization Signed-off-by: mali --- zh-cn/application-dev/reference/apis/js-apis-camera.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 392fb9457b..5a983b124a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -664,7 +664,7 @@ createCaptureSession(callback: AsyncCallback): void **示例:** ```js -cameraManager.createCaptureSession((err, capturesession) => { +cameraManager.createCaptureSession((err, captureSession) => { if (err) { console.error(`Failed to create captureSession. ${err.message}`); return; @@ -690,7 +690,7 @@ createCaptureSession(): Promise **示例:** ```js -cameraManager.createCaptureSession().then((capturesession) => { +cameraManager.createCaptureSession().then((captureSession) => { console.log('Promise returned with captureSession created.'); }) ``` -- GitLab