跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Taro-React switchTab 或 redirectTo 到新的 tab 页面没有 render 问题
未分類
1 9 月 2020

Taro-React switchTab 或 redirectTo 到新的 tab 页面没有 render 问题

Taro-React switchTab 或 redirectTo 到新的 tab 页面没有 render 问题

資深大佬 : lxerxa 8

tab 页面里是这样写的:

  componentDidMount () {     this.index();   }      render () {     const { issue: { collection } } = this.props;      return (       <View className='index'>         <List collection={ collection }/>       </View>     )   } 

index 请求接口了也正常返回数据了,没有 render, 但是刷新页面反而 render 了。第一次进入 Tab 页,nextState 变了没有 render,不知道啥原因?

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具