fix: 权限和图片处理

This commit is contained in:
wangzhongjie 2025-09-10 19:49:01 +08:00
parent 7063930bfb
commit e46f6213e5
3 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,7 @@ struct Index {
}); });
}); });
} }
async onPageShow(): Promise<void> { async onPageShow(): Promise<void> {
dConsole.log("权限首页 onPageShow2") dConsole.log("权限首页 onPageShow2")
if (!this.isPlay) { if (!this.isPlay) {
@ -220,7 +220,7 @@ struct Index {
HeaderComponent({ HeaderComponent({
shortLogo: false shortLogo: false
}) })
CardComponent({ CardComponent({
isSingle: this.singlePlay, isSingle: this.singlePlay,
singleClick: () => { singleClick: () => {

View File

@ -212,7 +212,7 @@ export default struct FaceRecognitionDialog {
.width(600) .width(600)
// 图片 // 图片
Row() { Row() {
Image(this.base64).height("100%").width("100%") Image(this.base64).height("100%").width("100%").objectFit(ImageFit.Contain)
} }
.height("100%") .height("100%")
.width(600) .width(600)

View File

@ -54,6 +54,7 @@
{ {
"name": "ohos.permission.SET_TIME" "name": "ohos.permission.SET_TIME"
}, },
{"name": "ohos.permission.ACCESS_SERVICE_DM"},
{ {
"name": "ohos.permission.INTERNET" "name": "ohos.permission.INTERNET"
}, },