@factoringplus/pl-components-pack-v3 0.4.26-pre-1 → 0.4.26-pre-2
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.
|
@@ -40155,6 +40155,11 @@ const ApiJs = function(optionsRequest, isGetResourse = false, token2) {
|
|
|
40155
40155
|
}
|
|
40156
40156
|
});
|
|
40157
40157
|
};
|
|
40158
|
+
const addGetSet = (addWord, method4) => {
|
|
40159
|
+
const arrStr = method4.split("/");
|
|
40160
|
+
const returnStr = arrStr[arrStr.length - 1][0].toUpperCase() + arrStr[arrStr.length - 1].slice(1);
|
|
40161
|
+
return arrStr.length === 1 ? addWord + returnStr : `${arrStr[0]}/${addWord}${returnStr}`;
|
|
40162
|
+
};
|
|
40158
40163
|
const parseMessageAlert = (error2) => {
|
|
40159
40164
|
let value = "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430";
|
|
40160
40165
|
if (!(error2 == null ? void 0 : error2.message)) {
|
|
@@ -40179,7 +40184,7 @@ function loadingAndSetup(bindData, apiCall, apiParams, loadingArr, fastResponse
|
|
|
40179
40184
|
}
|
|
40180
40185
|
return loadingAndSetup.prototype.store.dispatch(apiCall, apiParams).then((res) => {
|
|
40181
40186
|
bindData.value = res;
|
|
40182
|
-
loadingAndSetup.prototype.store.commit(
|
|
40187
|
+
loadingAndSetup.prototype.store.commit(addGetSet("set", apiCall), bindData.value);
|
|
40183
40188
|
return Promise.resolve(res, apiParams);
|
|
40184
40189
|
}).catch((error2) => {
|
|
40185
40190
|
var _a2;
|