Redirect to result page when user refresh payment page
This commit is contained in:
@@ -121,33 +121,37 @@ export default {
|
||||
methods: {
|
||||
liveData() {
|
||||
this.isLoading = true;
|
||||
axios
|
||||
.get(
|
||||
"/bayarBaki/" +
|
||||
localStorage.getItem("id") +
|
||||
// "/1" ,
|
||||
"/" +
|
||||
this.lelongId,
|
||||
{
|
||||
headers: {
|
||||
Authorization: "Bearer " + localStorage.getItem("token"),
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((response) => {
|
||||
// console.log("liveData", response);
|
||||
this.isLoading = false;
|
||||
if (response.data.success == true) {
|
||||
this.isSuccess = true;
|
||||
this.lists = response.data.data;
|
||||
this.tarikhLelong = response.data.tarikh_lelong;
|
||||
} else {
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
this.isLoading = false;
|
||||
console.log(error);
|
||||
});
|
||||
if(this.lelongId != null){
|
||||
axios
|
||||
.get(
|
||||
"/bayarBaki/" +
|
||||
localStorage.getItem("id") +
|
||||
// "/1" ,
|
||||
"/" +
|
||||
this.lelongId,
|
||||
{
|
||||
headers: {
|
||||
Authorization: "Bearer " + localStorage.getItem("token"),
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((response) => {
|
||||
// console.log("liveData", response);
|
||||
this.isLoading = false;
|
||||
if (response.data.success == true) {
|
||||
this.isSuccess = true;
|
||||
this.lists = response.data.data;
|
||||
this.tarikhLelong = response.data.tarikh_lelong;
|
||||
} else {
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
this.isLoading = false;
|
||||
console.log(error);
|
||||
});
|
||||
} else {
|
||||
this.$router.push({ name: "result" });
|
||||
}
|
||||
},
|
||||
clickCancelButton() {
|
||||
this.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user