mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
31 lines
672 B
JavaScript
31 lines
672 B
JavaScript
|
export default {
|
|||
|
// 关闭所有页面,打开到应用内的某个页面
|
|||
|
reLaunch(url) {
|
|||
|
return uni.reLaunch({
|
|||
|
url: url
|
|||
|
})
|
|||
|
},
|
|||
|
// 跳转到tabBar页面,并关闭其他所有非tabBar页面
|
|||
|
switchTab(url) {
|
|||
|
return uni.switchTab({
|
|||
|
url: url
|
|||
|
})
|
|||
|
},
|
|||
|
// 关闭当前页面,跳转到应用内的某个页面
|
|||
|
redirectTo(url) {
|
|||
|
return uni.redirectTo({
|
|||
|
url: url
|
|||
|
})
|
|||
|
},
|
|||
|
// 保留当前页面,跳转到应用内的某个页面
|
|||
|
navigateTo(url) {
|
|||
|
return uni.navigateTo({
|
|||
|
url: url
|
|||
|
})
|
|||
|
},
|
|||
|
// 关闭当前页面,返回上一页面或多级页面
|
|||
|
navigateBack() {
|
|||
|
return uni.navigateBack()
|
|||
|
}
|
|||
|
}
|