- 发布:2023-07-03 18:24
- 更新:2023-07-06 12:30
- 阅读:336
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: CLI
CLI版本号: 3.0.0-3080420230531001
测试过的手机:
示例代码:
uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
success: async (res) => {
},
});
"dependencies": {
"@dcloudio/uni-app": "3.0.0-3080420230531001",
"@dcloudio/uni-app-plus": "3.0.0-3080420230531001",
"@dcloudio/uni-components": "3.0.0-3080420230531001",
"@dcloudio/uni-h5": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-alipay": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-baidu": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-jd": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-lark": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-qq": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-toutiao": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-weixin": "3.0.0-3080420230531001",
"@dcloudio/uni-quickapp-webview": "3.0.0-3080420230531001"
}
"devDependencies": {
"@dcloudio/types": "3.3.3",
"@dcloudio/uni-automator": "3.0.0-3080420230531001",
"@dcloudio/uni-cli-shared": "3.0.0-3080420230531001",
"@dcloudio/uni-stacktracey": "3.0.0-3080420230531001",
"@dcloudio/vite-plugin-uni": "3.0.0-3080420230531001"
}
uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
success: async (res) => {
},
});
"dependencies": {
"@dcloudio/uni-app": "3.0.0-3080420230531001",
"@dcloudio/uni-app-plus": "3.0.0-3080420230531001",
"@dcloudio/uni-components": "3.0.0-3080420230531001",
"@dcloudio/uni-h5": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-alipay": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-baidu": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-jd": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-lark": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-qq": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-toutiao": "3.0.0-3080420230531001",
"@dcloudio/uni-mp-weixin": "3.0.0-3080420230531001",
"@dcloudio/uni-quickapp-webview": "3.0.0-3080420230531001"
}
"devDependencies": {
"@dcloudio/types": "3.3.3",
"@dcloudio/uni-automator": "3.0.0-3080420230531001",
"@dcloudio/uni-cli-shared": "3.0.0-3080420230531001",
"@dcloudio/uni-stacktracey": "3.0.0-3080420230531001",
"@dcloudio/vite-plugin-uni": "3.0.0-3080420230531001"
}
操作步骤:
uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
success: async (res) => {
},
});
uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
success: async (res) => {
},
});
预期结果:
能够正常拉起相册
能够正常拉起相册
实际结果:
不能拉起相册
不能拉起相册
bug描述:
手机型号:HUAWEI MatePad Pro 5G 鸿蒙系统:HarmonyOS3.0.0 内核版本5.10.43
调用uni.chooseImage点击选择相册,无法拉起相册
Mobile码农 - 资深mobile开发猿一头,ios/Android/解决方案,接插件接私活,欢迎老板商谈。
推荐相册插件:https://ext.dcloud.net.cn/plugin?id=12602