/**
* 跳转处理
* @param {string} path app.config.js中的完整地址 例如/pages/home/index
*/
commonNavigateTo(path) {
/** @name 底导航路由列表 */
const switchList = ['/pages/home/index'];
if (switchList.includes(path)) {
Taro.switchTab({
url: path,
});
} else { 路由跳转
Taro.navigateTo({
url: path,
});
}
}
Taro跳转页面分为两种
最新推荐文章于 2024-05-07 10:39:52 发布