uniapp returns to the previous page with parameters

B: page

 uni.$emit('updateData', 1)

  uni.navigateBack({
                        delta: 1
                               })

A: page

let that = this
uni.$on('updateData', function(data) {
               that.cut = data
           })

Guess you like

Origin blog.csdn.net/qq_43314341/article/details/126849020