方法一:
resolve会返回一个跳转路由对象
if (id && orgCode) { let text = this.$router.resolve({ path: path, query: { id: id, orgCode: orgCode } }); console.log("----text-----", text); window.open(text.href, "_blank"); } else {
方法二:
方法一:
resolve会返回一个跳转路由对象
if (id && orgCode) { let text = this.$router.resolve({ path: path, query: { id: id, orgCode: orgCode } }); console.log("----text-----", text); window.open(text.href, "_blank"); } else {
方法二: