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'
        })
      }

這樣就能夠解決瀏覽器被攔截的問題api

相關文章
相關標籤/搜索