window.open在ajax里 被浏览器拦截

      setLine(row){
let newTab= window.open('about:blank');
this.api.isPrivilege(localStorage.getItem("userId"),row.requestid).then(res=>{
// window.open('/workflow/request/ViewRequest.jsp?requestid='+row.requestid +'&isovertime=0')
newTab.location.href = '/workflow/request/ViewRequest.jsp?requestid='+row.requestid +'&isovertime=0'
})
}

这样就可以解决浏览器被拦截的问题

上一篇:Poi2010 Monotonicity 2


下一篇:Replication的犄角旮旯(一)--变更订阅端表名的应用场景