Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro.chooseImage在android机上兼容问题 #14206

Closed
jianghaolun opened this issue Jul 19, 2023 · 1 comment
Closed

Taro.chooseImage在android机上兼容问题 #14206

jianghaolun opened this issue Jul 19, 2023 · 1 comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@jianghaolun
Copy link

相关平台

H5

浏览器版本: 无
使用框架: React

复现步骤

Taro.chooseImage({
count: 1, // 默认9
sizeType: ['compressed'],
sourceType: ['camera'],
// 指定来源只有相机,在android机上还可以选相册的图片

期望结果

指定来源只有相机,只能拍照上传

实际结果

指定来源只有相机,在android机上还可以选相册的图片

环境信息

 Taro CLI 3.4.12 environment info:
    System:
      OS: macOS 12.2
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.18.1 - /usr/local/bin/node
      Yarn: 1.13.0 - /usr/local/bin/yarn
      npm: 8.1.1 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.4.12 => 3.4.12 
      @tarojs/components: 3.4.12 => 3.4.12 
      @tarojs/mini-runner: 3.4.12 => 3.4.12 
      @tarojs/plugin-framework-react: 3.4.13 => 3.4.13 
      @tarojs/react: 3.4.12 => 3.4.12 
      @tarojs/runtime: 3.4.12 => 3.4.12 
      @tarojs/taro: 3.4.12 => 3.4.12 
      @tarojs/webpack-runner: 3.4.12 => 3.4.12 
      babel-preset-taro: 3.4.12 => 3.4.12 
      eslint-config-taro: 3.4.12 => 3.4.12 
      react: ^16.10.0 => 16.14.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 19, 2023
@github-project-automation github-project-automation bot moved this to Padding in H5 Jul 19, 2023
@ZakaryCode
Copy link
Contributor

指定来源只有相机,在android机上还可以选相册的图片

这是对应浏览器内核的问题,在框架层无法针对该问题优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants