Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-13 21:55:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
190b09908b65e7767523c4e8380bc9ad27757215
190b0990
1 parent
5fe050ab
✨ feat: 修改跳转方式
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/navbar.vue
src/components/navbar.vue
View file @
190b099
<!--
* @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'
})
}
...
...
Please
register
or
login
to post a comment