@@ -1339,28 +1339,20 @@ export default {
13391339 if (this .$refs .bugForm .validate ()) {
13401340 this .sendingMail = true
13411341
1342- const content = ' Smartlab - Relate um problema' +
1343- ' \n Observatório: ' + this .computedTitle +
1344- ' \n Dimensão: ' + this .computedSubtitle +
1345- ' \n Localidade: ' + this .computedPlaceTitle +
1346- ' \n Card: ' + this .bugCard +
1347- ' \n Descrição do problema: ' + this .$refs .bugText .value +
1348- ' \n E-mail contato: ' + this .$refs .bugEmail .value
1342+ const contentArgs = {
1343+ args: this .$refs .bugEmail .value +
1344+ ' |' + this .computedTitle +
1345+ ' |' + this .computedSubtitle +
1346+ ' |' + this .computedPlaceTitle +
1347+ ' |' + this .bugCard +
1348+ ' |' + this .$refs .bugText .value
1349+ }
13491350
13501351 const snackAlert = this .snackAlert
13511352 const finishMailSend = () => { this .sendingMail = false }
13521353 const closeBugDialog = () => { this .bugDialog = false }
13531354
1354- this .$axios (this .$axiosCallSetupService .getAxiosOptions (
1355- ' /mail' , true ,
1356- {
1357- mail: {
1358- sistema: ' smartlab' ,
1359- recipients: [' atena@mpt.mp.br' ],
1360- subject: ' Smartlab - Relate um problema' ,
1361- content
1362- }
1363- })
1355+ this .$axios (this .$axiosCallSetupService .getAxiosOptions (' /mail' , true , contentArgs)
13641356 ).then (function (response ) {
13651357 finishMailSend ()
13661358 snackAlert ({ color: ' success' , text: ' Formulário enviado com sucesso.' })
0 commit comments