export default class Index extends Component { ...... Taro.setNavigationBarTitle({ title: this.$router.params.name }) ...... }