export default {
name: "TabBarItem",
props: {
path:String
},
methods: {
itemClick(){
return this.$router.push(this.path)
// this.$router.replace(this.path).catch(err => err)
// if (this.$route.path !== this.path) {this.$router.replace(this.path)} 防止多次点击报错
}
}
};
点击事件,一直提示push'无效,请问是哪里有问题