@iankibetsh/shframework 5.2.0 → 5.2.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.
- package/dist/library.js +9 -5
- package/dist/library.mjs +9 -5
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -453,11 +453,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
453
453
|
}
|
|
454
454
|
function doPost (endPoint, data, extraConfig) {
|
|
455
455
|
updateSession();
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
const accessToken = shStorage.getItem('access_token');
|
|
457
|
+
if(accessToken){
|
|
458
|
+
({
|
|
459
|
+
headers: {
|
|
460
|
+
Authorization: 'Bearer ' + shStorage.getItem('access_token')
|
|
461
|
+
}
|
|
462
|
+
});
|
|
459
463
|
}
|
|
460
|
-
|
|
464
|
+
|
|
461
465
|
if (extraConfig) {
|
|
462
466
|
Object.assign(config, extraConfig);
|
|
463
467
|
}
|
|
@@ -3631,7 +3635,7 @@ return (_ctx, _cache) => {
|
|
|
3631
3635
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(formFields.value, (field, index) => {
|
|
3632
3636
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3633
3637
|
key: field,
|
|
3634
|
-
class: vue.normalizeClass(getElementClass('formGroup') + ' ' +field.field)
|
|
3638
|
+
class: vue.normalizeClass(getElementClass('formGroup') + ' sh-field' + field.field)
|
|
3635
3639
|
}, [
|
|
3636
3640
|
(field.type === 'hidden')
|
|
3637
3641
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
package/dist/library.mjs
CHANGED
|
@@ -441,11 +441,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
441
441
|
}
|
|
442
442
|
function doPost (endPoint, data, extraConfig) {
|
|
443
443
|
updateSession();
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
const accessToken = shStorage.getItem('access_token');
|
|
445
|
+
if(accessToken){
|
|
446
|
+
({
|
|
447
|
+
headers: {
|
|
448
|
+
Authorization: 'Bearer ' + shStorage.getItem('access_token')
|
|
449
|
+
}
|
|
450
|
+
});
|
|
447
451
|
}
|
|
448
|
-
|
|
452
|
+
|
|
449
453
|
if (extraConfig) {
|
|
450
454
|
Object.assign(config, extraConfig);
|
|
451
455
|
}
|
|
@@ -3619,7 +3623,7 @@ return (_ctx, _cache) => {
|
|
|
3619
3623
|
(openBlock(true), createElementBlock(Fragment, null, renderList(formFields.value, (field, index) => {
|
|
3620
3624
|
return (openBlock(), createElementBlock("div", {
|
|
3621
3625
|
key: field,
|
|
3622
|
-
class: normalizeClass(getElementClass('formGroup') + ' ' +field.field)
|
|
3626
|
+
class: normalizeClass(getElementClass('formGroup') + ' sh-field' + field.field)
|
|
3623
3627
|
}, [
|
|
3624
3628
|
(field.type === 'hidden')
|
|
3625
3629
|
? withDirectives((openBlock(), createElementBlock("input", {
|