vue-intergrall-plugins 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4841,7 +4841,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4841
4841
|
getStandardMessages: function getStandardMessages(type, token) {
|
|
4842
4842
|
var _this = this;
|
|
4843
4843
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
4844
|
-
var url, response,
|
|
4844
|
+
var url, response, data, tipo, nivel, conteudo, msg_ret, st_ret;
|
|
4845
4845
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4846
4846
|
while (1) switch (_context.prev = _context.next) {
|
|
4847
4847
|
case 0:
|
|
@@ -4865,7 +4865,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4865
4865
|
msg_ret: 'Retorno incorreto das mensagens formatadas'
|
|
4866
4866
|
});
|
|
4867
4867
|
case 9:
|
|
4868
|
-
|
|
4868
|
+
data = response.data;
|
|
4869
4869
|
tipo = data.tipo, nivel = data.nivel, conteudo = data.conteudo, msg_ret = data.msg_ret, st_ret = data.st_ret;
|
|
4870
4870
|
if (tipo) _this.$emit('set-message-type', tipo);
|
|
4871
4871
|
if (!(st_ret === 'OK')) {
|
|
@@ -4882,7 +4882,9 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4882
4882
|
msg_ret: msg_ret
|
|
4883
4883
|
});
|
|
4884
4884
|
case 20:
|
|
4885
|
-
return _context.abrupt("return",
|
|
4885
|
+
return _context.abrupt("return", msg_ret ? {
|
|
4886
|
+
msg_ret: msg_ret
|
|
4887
|
+
} : false);
|
|
4886
4888
|
case 21:
|
|
4887
4889
|
_context.next = 27;
|
|
4888
4890
|
break;
|
|
@@ -4890,7 +4892,9 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4890
4892
|
_context.prev = 23;
|
|
4891
4893
|
_context.t0 = _context["catch"](3);
|
|
4892
4894
|
console.error("Erro na requisicao para o servidor (2)", _context.t0);
|
|
4893
|
-
return _context.abrupt("return",
|
|
4895
|
+
return _context.abrupt("return", {
|
|
4896
|
+
msg_ret: _context.t0.message ? _context.t0.message : _context.t0
|
|
4897
|
+
});
|
|
4894
4898
|
case 27:
|
|
4895
4899
|
case "end":
|
|
4896
4900
|
return _context.stop();
|