@factoringplus/pl-components-pack-v3 0.5.2-pre-10 → 0.5.2-pre-11
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.
|
@@ -40597,10 +40597,11 @@ const formatDateObj = (parseObj, typeToString = false) => {
|
|
|
40597
40597
|
const ApiJs = function(optionsRequest, isGetResourse = false, token, isChat = false) {
|
|
40598
40598
|
return new Promise((resolve, reject) => {
|
|
40599
40599
|
const options = { ...optionsRequest };
|
|
40600
|
+
const checkFormatDate = (data2, param = false) => isChat ? data2 : formatDateObj(data2, param);
|
|
40600
40601
|
axios({
|
|
40601
40602
|
url: options.url,
|
|
40602
40603
|
method: options.method,
|
|
40603
|
-
params:
|
|
40604
|
+
params: checkFormatDate(options.params, true),
|
|
40604
40605
|
headers: {
|
|
40605
40606
|
authorization: token,
|
|
40606
40607
|
...options.headers
|
|
@@ -40610,8 +40611,8 @@ const ApiJs = function(optionsRequest, isGetResourse = false, token, isChat = fa
|
|
|
40610
40611
|
signal: options.signal
|
|
40611
40612
|
}).then((resourse) => {
|
|
40612
40613
|
if (isGetResourse)
|
|
40613
|
-
resolve(
|
|
40614
|
-
resolve(
|
|
40614
|
+
resolve(checkFormatDate(resourse));
|
|
40615
|
+
resolve(checkFormatDate(resourse.data));
|
|
40615
40616
|
}).catch((error2) => {
|
|
40616
40617
|
reject(error2.response);
|
|
40617
40618
|
});
|
|
@@ -47454,9 +47455,7 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47454
47455
|
},
|
|
47455
47456
|
async getChatMessagesByChannelId(count2) {
|
|
47456
47457
|
try {
|
|
47457
|
-
console.log("this.channelId", this.channelId);
|
|
47458
47458
|
const messages2 = await apiChat.getChatMessagesByChannelId(this.api, this.baseUrl, this.channelId, this.afterMessagesLoaded, count2);
|
|
47459
|
-
console.log("messages getChatMessagesByChannelId", messages2);
|
|
47460
47459
|
if (messages2.length < 10) {
|
|
47461
47460
|
this.afterMessagesLoaded = true;
|
|
47462
47461
|
}
|
|
@@ -47505,7 +47504,6 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47505
47504
|
},
|
|
47506
47505
|
async getSelectedChannelInfo(selectedChannel, callback) {
|
|
47507
47506
|
try {
|
|
47508
|
-
console.log("selectedChannel", selectedChannel);
|
|
47509
47507
|
this.afterMessagesLoaded = false;
|
|
47510
47508
|
this.channelId = selectedChannel.channelId;
|
|
47511
47509
|
this.participant = selectedChannel.participant;
|