版权声明:有用请收藏,转载请注明出处!不做伸手党,谢谢! https://blog.csdn.net/qq_42221334/article/details/89398101
mpvue开发微信小程序时,用标签属性做路由跳转的话,open-type
属性值要注意:
tabBar 微信自带底部导航
1.open-type="switchTab" 跳转tabBar路由
2.open-type="navigate" 跳转非tabBar路由(默认值)
<a href="/pages/index/main" open-type="switchTab" class="home">去往首页-way1</a>
<a href="/pages/counter/main" open-type="navigate" class="home">去往counter</a>
<navigator open-type="navigateBack" delta="1">返回非tabBar</navigator>
<navigator url="/pages/index/main" open-type="switchTab" delta="1">跳转tabBar</navigator>