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

百度小程序 showActionSheet 不能嵌套使用 #12544

Closed
zht0102 opened this issue Sep 21, 2022 · 1 comment
Closed

百度小程序 showActionSheet 不能嵌套使用 #12544

zht0102 opened this issue Sep 21, 2022 · 1 comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x

Comments

@zht0102
Copy link

zht0102 commented Sep 21, 2022

相关平台

百度小程序

小程序基础库: 3.310.35
使用框架: React

复现步骤

Taro.showActionSheet({
itemList: ['切换数据环境', '清除缓存', '打印store数据'],
success(res){
Taro.showActionSheet({
itemList: ['生产环境', '预发环境', '测试环境'],
success(response){
console.log('re', response)
}
})
}
})

期望结果

代码能够正常运行

实际结果

报错:{errCode: 201, errMsg: "showActionSheet:fail cancel"}

环境信息

👽 Taro v3.5.0


  Taro CLI 3.5.0 environment info:
    System:
      OS: macOS 12.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.16.1 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 6.14.12 - /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.12 => 3.4.12 
      @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: ^17.0.2 => 17.0.2 
    npmGlobalPackages:
      typescript: 4.7.4

@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels Sep 21, 2022
@zht0102 zht0102 changed the title showActionSheet不能嵌套使用 百度小程序 showActionSheet 不能嵌套使用 Sep 21, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 21, 2022

@zht0102 这是小程序自身的限制吧,你可以用 swan.showActionSheet 尝试一下,应该也是一样的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants