Taro: vue2 onGetUserInfo不触发

Created on 22 Oct 2020  ·  1Comment  ·  Source: NervJS/taro


相关平台

微信小程序

复现仓库

https://github.com/zyq190308/taro-vue-demo
小程序基础库: 2.13.1
使用框架: Vue 2

复现步骤

,通过这种方式触发授权并且同意后,onGetUserInfo没有触发,Vue2没反应,看了react版本的是正常的

期望结果

期望触发回调

实际结果

回调没触发

环境信息

 Taro v3.0.14


  Taro CLI 3.0.14 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.9.0 - ~/.nvm/versions/node/v14.9.0/bin/node
      Yarn: 1.22.5 - ~/.yarn/bin/yarn
      npm: 6.14.8 - ~/.nvm/versions/node/v14.9.0/bin/npm
    npmPackages:
      @tarojs/components: 3.0.14 => 3.0.14
      @tarojs/mini-runner: 3.0.14 => 3.0.14
      @tarojs/runtime: 3.0.14 => 3.0.14
      @tarojs/taro: 3.0.14 => 3.0.14
      @tarojs/webpack-runner: 3.0.14 => 3.0.14
      babel-preset-taro: 3.0.14 => 3.0.14
      eslint-config-taro: 3.0.14 => 3.0.14

F-vue2 T-weapp V-3

Most helpful comment

同样的问题。
触发方法为 @getuserinfo="func"

>All comments

同样的问题。
触发方法为 @getuserinfo="func"

Was this page helpful?
0 / 5 - 0 ratings