taro icon indicating copy to clipboard operation
taro copied to clipboard

RN在1.3.0Beta2执行Taro.getCurrentPages()报错

Open YuanQuan opened this issue 7 years ago • 6 comments

image

  • 操作系统: mac
  • Taro 版本 1.3.0beta2
  • Node.js 版本 10.0+
  • 报错平台 rn

YuanQuan avatar May 17 '19 10:05 YuanQuan

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

taro-bot avatar May 17 '19 10:05 taro-bot

这个问题在beta3中貌似没报错,但是拿到的数据,跟其他端拿到的是不一样的。 其他端是对象,在RN中是一个字符串。

tourze avatar May 19 '19 15:05 tourze

CC @Pines-Cheng

taro-bot avatar May 21 '19 02:05 taro-bot

@YuanQuan 贴一下你报错的代码。

Pines-Cheng avatar May 21 '19 02:05 Pines-Cheng

image 我这边返回的是数组啊。

Pines-Cheng avatar May 21 '19 03:05 Pines-Cheng

image 我这边返回的是数组啊。

其他端返回的是数组,但每个item是个object,你可以看看小程序的文档

tourze avatar May 21 '19 08:05 tourze