problem description
browser intercepts window.open () method
the environmental background of the problems and what methods you have tried
use to open a pop-up window first, and then change the address. Is still being intercepted.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
const newWin = window.open();
debugger
let alipayURL = this.payURL;
this.$axios.get(alipayURL, {
params:{
orderId: this.alipayOrderId, //Id
}
}).then(
(res) => {
if(res.data.status == 200){
//
let routerData = this.$router.resolve({path:"/alipay",query:{htmls:res.data.data.page_html}});
newWin.location.replace = routerData.href;
}else{
this.$message({
message: "",
type: "warning"
});
}
}
)
what result do you expect? What is the error message actually seen?
what should I do?