hookehuyr

✨ feat: 修改跳转方式

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