mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 04:16:48 +08:00
fix: 修复苹果返回导航异常
This commit is contained in:
@@ -46,6 +46,11 @@
|
||||
}
|
||||
},
|
||||
toBack(){
|
||||
// 如果定义的有 go 事件,优先处理这个
|
||||
if( this.$listeners['go'] ) {
|
||||
this.$emit('go')
|
||||
return
|
||||
}
|
||||
if(this.backUrl!=''){
|
||||
if(this.backUrl == '/pages/my/index'){
|
||||
uni.switchTab({
|
||||
@@ -67,7 +72,6 @@
|
||||
}else{
|
||||
uni.navigateBack();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user