From e46f6213e59704811c5431dac6e79256d815370b Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Wed, 10 Sep 2025 19:49:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9D=83=E9=99=90=E5=92=8C=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 4 ++-- entry/src/main/ets/pages/UserInfo/FaceRecognition.ets | 2 +- entry/src/main/module.json5 | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 962d751..2969691 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -78,7 +78,7 @@ struct Index { }); }); } - + async onPageShow(): Promise { dConsole.log("权限首页 onPageShow2") if (!this.isPlay) { @@ -220,7 +220,7 @@ struct Index { HeaderComponent({ shortLogo: false }) - + CardComponent({ isSingle: this.singlePlay, singleClick: () => { diff --git a/entry/src/main/ets/pages/UserInfo/FaceRecognition.ets b/entry/src/main/ets/pages/UserInfo/FaceRecognition.ets index 69f991d..f02e3e8 100644 --- a/entry/src/main/ets/pages/UserInfo/FaceRecognition.ets +++ b/entry/src/main/ets/pages/UserInfo/FaceRecognition.ets @@ -212,7 +212,7 @@ export default struct FaceRecognitionDialog { .width(600) // 图片 Row() { - Image(this.base64).height("100%").width("100%") + Image(this.base64).height("100%").width("100%").objectFit(ImageFit.Contain) } .height("100%") .width(600) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index db1c5f8..a444b23 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -54,6 +54,7 @@ { "name": "ohos.permission.SET_TIME" }, + {"name": "ohos.permission.ACCESS_SERVICE_DM"}, { "name": "ohos.permission.INTERNET" },