tabbar 跳转问题

This commit is contained in:
Jason
2022-09-15 11:40:20 +08:00
parent 5bbfb04114
commit 0c5bf7959c
58 changed files with 46 additions and 46 deletions

View File

@@ -71,8 +71,7 @@
"vueVersion": "3",
"h5": {
"router": {
"mode": "history",
"base": "/mobile"
"mode": "history"
},
"title": "加载中"
}

View File

@@ -54,7 +54,8 @@ export enum LinkTypeEnum {
export function navigateTo(link: Link, navigateType: 'navigateTo' | 'reLaunch' = 'navigateTo') {
const url = link.query ? `${link.path}?${objectToQuery(link.query)}` : link.path
uni[navigateType]({ url })
navigateType == 'navigateTo' && uni.navigateTo({ url })
navigateType == 'reLaunch' && uni.reLaunch({ url })
}
/**