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

Taro3如何调用getOpenerEventChannel方法 #7239

Closed
Murphycx94 opened this issue Aug 3, 2020 · 1 comment
Closed

Taro3如何调用getOpenerEventChannel方法 #7239

Murphycx94 opened this issue Aug 3, 2020 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Murphycx94
Copy link

相关平台

微信小程序

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

复现步骤

在被打开页面
不知道如何调用getOpenerEventChannel
this.getOpenerEventChannel是undefined
this.$scope.getOpenerEventChannel是undefined
this.$wx.getOpenerEventChannel是undefined

期望结果

期望能正常使用getOpenerEventChannel

实际结果

都无法调用

环境信息

👽 Taro v3.0.5


  Taro CLI 3.0.5 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 3.2.57 - /bin/sh
    Binaries:
      Node: 12.16.1 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.7 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.5 => 3.0.5 
      @tarojs/mini-runner: 3.0.5 => 3.0.5 
      @tarojs/react: 3.0.5 => 3.0.5 
      @tarojs/runtime: 3.0.5 => 3.0.5 
      @tarojs/taro: 3.0.5 => 3.0.5 
      @tarojs/webpack-runner: 3.0.5 => 3.0.5 
      babel-preset-taro: 3.0.5 => 3.0.5 
      eslint-config-taro: 3.0.5 => 3.0.5 
      react: ^16.10.0 => 16.13.1 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 3, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 3, 2020

不需要使用这个 API,直接使用 Taro Event 即可

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

No branches or pull requests

2 participants