Laravel Vapor - sync code for download files in bulk from S3 to more files

This commit is contained in:
Dillon Ngo
2024-04-29 14:12:05 +08:00
parent 4575eab701
commit 5033f9b5f8
@@ -86,10 +86,19 @@ export default {
},
successHandler(response) {
this.isLoading = false;
console.log('debug response: ' + JSON.stringify(response));
if (response.message) {
this.returnData = response;
} else {
}
else {
this.returnData = null;
if(window.LARAVEL_VAPOR_ENABLED){
console.log('window.LARAVEL_VAPOR_ENABLED');
let src = response.src;
if (src) {
window.location.href = src;
}
}
}
},
},