mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-31 06:02:57 +08:00
tabbar 跳转问题
This commit is contained in:
@@ -71,8 +71,7 @@
|
||||
"vueVersion": "3",
|
||||
"h5": {
|
||||
"router": {
|
||||
"mode": "history",
|
||||
"base": "/mobile"
|
||||
"mode": "history"
|
||||
},
|
||||
"title": "加载中"
|
||||
}
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user