uni-app dynamically changes the title of the navigation bar

It is necessary to click page A to get the warehouse location, jump to page B to change the title of the navigation bar of page B 

accomplish:

onLoad(op) {
	// 动态更改标题
	console.log(op.number);
	uni.setNavigationBarTitle({
	  title:op.number
	})
},

//这个能修改 上面那个不一定能修改成功
onReady() {
	//修理厂名称
	uni.setNavigationBarTitle({
		title: this.xiuname
	})
},
        

Guess you like

Origin blog.csdn.net/weixin_44285250/article/details/108646037