File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ def get(self):
379379 else :
380380 self .finish ({
381381 'success' : True ,
382- 'details' : f'Current status is { status } .'
382+ 'details' : status
383383 })
384384 else :
385385 raise HTTPError (400 , reason = "Missing required parameter: id" )
@@ -401,7 +401,7 @@ def post(self):
401401 else :
402402 self .finish ({
403403 'success' : True ,
404- 'details' : f'Current status is { status } .'
404+ 'details' : status
405405 })
406406 else :
407407 raise HTTPError (400 , reason = "Missing required form field: id" )
Original file line number Diff line number Diff line change @@ -370,16 +370,16 @@ export default {
370370 bodyFormData .append (' id' , id);
371371 axios ({
372372 method: " post" ,
373- url: self . $apiUrl + ' /api/uptime' ,
373+ url: ' /api/uptime' ,
374374 data: bodyFormData,
375375 headers: { " Content-Type" : " multipart/form-data" },
376376 }).then (res => {
377377 self .hideLoading ();
378378 self .$swal ({
379- imageUrl: require (' ../assets/img/api-sucess .svg' ),
379+ imageUrl: require (' ../assets/img/api-editor .svg' ),
380380 imageWidth: 200 ,
381381 title: ' Your report is ready:' ,
382- html: " <p class='black -text'> " + res .data .details + " </p>"
382+ html: " <h1>Status: <b> " + res . data . details [ 0 ] + " </b></h1><p>Details: </p><p class='blue -text codeBox p-1'><code> " + res .data .details [ 1 ] + " </code> </p>"
383383 })
384384 }).catch (err => {
385385 if (err? .response ? .data ){
You can’t perform that action at this time.
0 commit comments