let tempPage = window.open('_blank');//先打開一個空白頁 this.$axios.post("/aliPay/aliTradePagePay",{ "orderId": this.orderId }).then((response) => { let res = response.data; tempPage.location = res.data; //再設置空白頁的地址 }).catch((err) =>{ console.log("支付失敗",err); })