navigator 使用switchTab 提示错误
代码:
<navigator bindtap=“switchTab” class=’{{switchTabOne==true ? “on”:""}}’ open-type=‘switchTab’ data-order=‘0’ hover-class=‘none’ >未使用</navigator>
<navigator bindtap=“switchTab” class=’{{switchTabTwo==true ? “on”:""}}’ open-type=‘switchTab’ data-order=‘1’ hover-class=‘none’ >已过期</navigator>
两个tab标签切换时就会提示<navigator/> should have url attribute when using navigateTo, redirectTo or switchTab