You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`clickTab(target){
//解决Avoided redundant navigation to current location
if (this.$router.currentRoute.name !== target.name) {
this.$router.push({name:target.name});
this.$store.commit("editableTabsValue",target.name);
}
}`
The text was updated successfully, but these errors were encountered:
当在激活的tab页再次点击时,控制台会报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location:
在Tabs.vue中的点击事件方法中,在 进行路由导航时先进行判断,是否是导航到同一个路由。如果不相同在进行导航。
`clickTab(target){
//解决Avoided redundant navigation to current location
if (this.$router.currentRoute.name !== target.name) {
this.$router.push({name:target.name});
this.$store.commit("editableTabsValue",target.name);
}
The text was updated successfully, but these errors were encountered: