修正多处问题
This commit is contained in:
@@ -183,9 +183,7 @@ function onTabTap(index) {
|
||||
emit('tab-change', index)
|
||||
// 设置导航标志,阻止轮询覆盖状态
|
||||
isNavigating = true
|
||||
let timer = setTimeout(() => {
|
||||
uni.showLoading({ title: '加载中...', mask: true })
|
||||
}, 50)
|
||||
uni.showLoading({ title: '加载中...', mask: true })
|
||||
isSwitching = true
|
||||
uni.switchTab({
|
||||
url: targetPath,
|
||||
@@ -195,7 +193,6 @@ function onTabTap(index) {
|
||||
uni.reLaunch({ url: targetPath })
|
||||
},
|
||||
complete: () => {
|
||||
clearTimeout(timer)
|
||||
uni.hideLoading()
|
||||
setTimeout(() => {
|
||||
isSwitching = false
|
||||
|
||||
Reference in New Issue
Block a user