hookehuyr

✨ feat: 修改跳转方式

<!--
* @Date: 2022-09-21 11:59:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-21 16:05:45
* @LastEditTime: 2022-10-13 20:26:49
* @FilePath: /swx/src/components/navbar.vue
* @Description: 底部导航栏
-->
......@@ -40,12 +40,12 @@ import Taro from '@tarojs/taro'
const goTo = (page) => {
if (page === 'home') {
if (currentPage.value === 'home') return;
Taro.redirectTo({
wx.redirectTo({
url: '../index/index'
})
} else {
if (currentPage.value === 'my') return;
Taro.redirectTo({
wx.redirectTo({
url: '../my/index'
})
}
......