用的是:nativeOnClick

{
	this.navList && this.navList.map((it, index) =>
		<router-link
			tag={ 'span' }
			to={ { path: it.path } }
			class={ `${ styles.item } ${ this.currentNavIndex === index ? styles.active : '' }` }
			nativeOnClick={ this.tabItem.bind(this, index) }
		>{ it.name }</router-link>
	)
}
Logo

前往低代码交流专区

更多推荐