taro: fial cannot navigate back at first page?
时间:2020-08-18 20:11:36
收藏:0
阅读:518
返回页面有tabbar时报错,
使用switchTab,其他页面样式都出现问题,
使用reLauch,页面需要重新加载,刷新
const handleBackClick = () => { if (Taro.getCurrentPages().length <= 1) { Taro.reLaunch({ url: ‘/pages/index/index‘ }) return } Taro.navigateBack() }
原文:https://www.cnblogs.com/Nyan-Workflow-FC/p/13525042.html
评论(0)