修改跳转问题
This commit is contained in:
@@ -123,10 +123,17 @@ const filterdList = computed(() => {
|
||||
})
|
||||
// 返回上一页
|
||||
const goBack = () => {
|
||||
// uni.navigateBack()
|
||||
uni.switchTab({
|
||||
url:"/pages/index/index"
|
||||
})
|
||||
if(uni.getStorageSync('sourcePage') === "index"){
|
||||
uni.switchTab({
|
||||
url:"/pages/index/index"
|
||||
})
|
||||
}else if(uni.getStorageSync('sourcePage') === "serviceIndex"){
|
||||
uni.switchTab({
|
||||
url:"/pages/serviceIndex/serviceIndex"
|
||||
})
|
||||
}
|
||||
uni.removeStorageSync('sourcePage')
|
||||
|
||||
}
|
||||
|
||||
// 查看详情
|
||||
|
||||
Reference in New Issue
Block a user