route.path 跳转页面并打开一个新标签页(菜鸟前端项目的小坎坷)

100 阅读1分钟
 // window.location.href="index.html";
                  let routeUrl = this.$router.resolve({
                    path: "/offlinePay",
                    // window.close();
                  })
console.log(routeUrl.href)
                  window.open(routeUrl.href, '_blank');
                }

一开始用了$router.push一直拿不到href的值,大佬别见笑