uniapp 微信小程序双语 动态修改tabBar标题

uniapp yekong

tabBar

"tabBar": {
		"color": "#999999",
		"selectedColor": "#a63030",
		"borderStyle": "black",
		"backgroundColor": "#ffffff",
		"list": [{
			"pagePath": "pages/index/index",
			"iconPath": "static/image/foot1.png",
			"selectedIconPath": "static/image/foot1_on.png",
			"text": "包裹预报"
		}, {
			"pagePath": "pages/message/index",
			"iconPath": "static/image/foot2.png",
			"selectedIconPath": "static/image/foot2_on.png",
			"text": "发货须知"
		}, {
			"pagePath": "pages/ucenter/index",
			"iconPath": "static/image/foot3.png",
			"selectedIconPath": "static/image/foot3_on.png",
			"text": "个人中心"
		}]
	}

动态修改标题

setTab() {
				uni.setTabBarItem({
					index: 0,
					text: this.$t('index.title')
				})
				uni.setTabBarItem({
					index: 1,
					text: this.$t('message.title')
				})
				uni.setTabBarItem({
					index: 2,
					text: this.$t('ucenter.title')
				})
			},
喜欢