This commit is contained in:
2023-08-21 09:10:50 +08:00
parent a90c28f6fd
commit 7c54101dd6
12 changed files with 272 additions and 101 deletions

View File

@@ -109,14 +109,24 @@ export default {
backPath: {
type: String,
default: ''
},
isDefineBack:{
type:Boolean,
default:false
}
},
methods: {
goBack() {
if(this.backPath) {
this.$tools.routerTo(this.backPath)
} else {
uni.navigateBack();
if(this.isDefineBack){
this.$emit('toBack')
}else{
if(this.backPath) {
uni.switchTab({
url:this.backPath
})
} else {
uni.navigateBack();
}
}
}
}