From 29925220d5c70a1387ac70696a48434eabe7d9b8 Mon Sep 17 00:00:00 2001 From: Amir Date: Wed, 22 Jun 2022 11:55:39 +0800 Subject: [PATCH] redirect api billplz same page --- src/components/Cart.vue | 4 ++-- src/components/result/ToPay.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Cart.vue b/src/components/Cart.vue index 006786f..1b85c76 100644 --- a/src/components/Cart.vue +++ b/src/components/Cart.vue @@ -830,8 +830,8 @@ export default { .post("/feepayment", this.formPayment) .then((response) => { console.log(response); - window.open(response.data.message + "?auto_submit=true"); - // window.location.href = response.data.message + '?auto_submit=true'; + // window.open(response.data.message + "?auto_submit=true"); + window.location.href = response.data.message + '?auto_submit=true'; console.log(response); diff --git a/src/components/result/ToPay.vue b/src/components/result/ToPay.vue index 4b7b355..a6fdc48 100644 --- a/src/components/result/ToPay.vue +++ b/src/components/result/ToPay.vue @@ -319,8 +319,8 @@ export default { }) .then((response) => { console.log(response); - window.open(response.data.message + "?auto_submit=true"); - // window.location.href = response.data.message + '?auto_submit=true'; + // window.open(response.data.message + "?auto_submit=true"); + window.location.href = response.data.message + '?auto_submit=true'; }) .catch((error) => {