This commit is contained in:
shijingjing
2022-05-07 11:57:20 +08:00
parent ae822f7e8a
commit f01b317953
2 changed files with 1 additions and 2 deletions

View File

@@ -51,7 +51,6 @@ export default {
this.parentName = params.parentName this.parentName = params.parentName
uni.$on('update', (tabIndex) => { uni.$on('update', (tabIndex) => {
this.currIndex = tabIndex this.currIndex = tabIndex
this.changeTab(tabIndex)
}) })
}, },
onShow() { onShow() {

View File

@@ -29,7 +29,7 @@
this.tabIndex = index this.tabIndex = index
uni.navigateBack({ uni.navigateBack({
success: ()=>{ success: ()=>{
uni.$emit('update',this.tabIndex) uni.$emit('update',index)
} }
}) })
}, },