diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index ff03dcecb660d23efb4f2c7d7721fd9ee029a88e..9027c26809a8599a97f40d1f3d6173f096a7bc61 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -396,7 +396,7 @@ struct XComponentPage { .rotate({ angle: this.rotation }) .animation({ curve: curves.springMotion() }) .onClick(() => { - if (this.photoUri != '') { + if (this.photoUri !== '') { if (this.currentPic) { previewPhoto(context); } else { @@ -461,7 +461,7 @@ struct XComponentPage { videoRecording(this.isStabilization, cameraPosition, qualityLevel, surfaceId, context, foldAbleStatus); } this.Initialize(); - this.isFront = cameraPosition != 0; + this.isFront = cameraPosition !== 0; }) } .width(CameraConstants.FULL_SCREEN)