鸿蒙真机运行一直卡在开屏页也不报错的uni-app

鸿蒙真机运行一直卡在开屏页也不报错的uni-app

示例代码:

{
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"phone"
],
"deliveryWithInstall": true,
"installationFree": false,
"profiles": {
"default": {
"pages": "$profile:main_pages",
"startPage": "pages/index/index"
}
},
"virtualMachine": "ark",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"ohos.want.action.home"
]
}
]
}
],
"requestPermissions": [
{
"name": "ohos.permission.MICROPHONE",
"reason": "$string:get_camera_tips",
"usedScene": {
"abilities": [
"FormAbility"
],
"when":"inuse"
}
}
]
}
// "targetModuleName": "feature",
// "targetPriority": 50,
// "isolationMode": "nonisolationFirst"
}

操作步骤:

正常操作

预期结果:

成功进入开屏页

实际结果:

一直卡在开屏页

bug描述:

在配置完module.json5后真机运行,就一直卡在开屏页,就没反应了,我去看了鸿蒙文档module.json5里面也没有找到关于开屏页的配置,还是module.json5里配置有错误?我把module.json5代码放下面

开屏页.mp4_.zip

信息
产品分类 uniapp/App
PC开发环境操作系统 Mac
PC开发环境操作系统版本号 m2
HBuilderX类型 正式
HBuilderX版本号 4.65
手机系统 HarmonyOS NEXT
手机系统版本号 HarmonyOS 5.0.1
手机厂商 华为
手机机型 nova13
页面类型 vue
vue版本 vue3
打包方式 云端
项目创建方式 HBuilderX

更多关于鸿蒙真机运行一直卡在开屏页也不报错的uni-app的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于鸿蒙真机运行一直卡在开屏页也不报错的uni-app的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


有人知道怎么回事嘛?把module.json5里的配置都注了一遍,没找到那个配置不对

回到顶部