![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue-router
涵一
做自己
展开
-
vue-router如何在新窗口打开页面
vue-router在新窗口打开页面的方法:let routeUrl = this.$router.resolve({ name: "detail", query: { id: item.id },});window.open(routeUrl.href, '_blank');原创 2020-11-17 10:40:05 · 312 阅读 · 0 评论 -
Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location解决办法:在路由文件中加入如下代码,即可解决import VueRouter from "vue-router";//pushconst VueRouterPush = VueRouter.prototype.pushVueRouter.prototype.push = function push (to原创 2020-10-16 11:02:58 · 3713 阅读 · 0 评论