From 7092441d3b14b28897ddb79d77e164ed15ec86ae Mon Sep 17 00:00:00 2001 From: portree_kid Date: Sat, 11 Apr 2020 21:52:30 +0200 Subject: [PATCH] Webservice response --- src/renderer/components/Upload.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/Upload.vue b/src/renderer/components/Upload.vue index 9afb3cb..6e55d80 100644 --- a/src/renderer/components/Upload.vue +++ b/src/renderer/components/Upload.vue @@ -69,6 +69,9 @@ parent.$refs.upload.message += element.message + '\r\n'; }); } + } else if(JSON.parse(e.srcElement.response) !== undefined) { + var response = JSON.parse(e.srcElement.response); + parent.$refs.upload.message = response.err; } else { parent.$refs.upload.message = response.message; }