ts-glitter 21.0.2 → 21.0.4
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/lowcode/Entry.js
CHANGED
|
@@ -146,7 +146,7 @@ export class Entry {
|
|
|
146
146
|
}
|
|
147
147
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
148
148
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
149
|
-
glitter.share.editerVersion = 'V_21.0.
|
|
149
|
+
glitter.share.editerVersion = 'V_21.0.4';
|
|
150
150
|
glitter.share.start = new Date();
|
|
151
151
|
const vm = { appConfig: [] };
|
|
152
152
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -149,7 +149,7 @@ export class Entry {
|
|
|
149
149
|
}
|
|
150
150
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
151
151
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
152
|
-
glitter.share.editerVersion = 'V_21.0.
|
|
152
|
+
glitter.share.editerVersion = 'V_21.0.4';
|
|
153
153
|
glitter.share.start = new Date();
|
|
154
154
|
const vm = { appConfig: [] };
|
|
155
155
|
(window as any).saasConfig = {
|
|
@@ -23,6 +23,10 @@ export class BaseApi {
|
|
|
23
23
|
if (requestOptions.method === 'GET') {
|
|
24
24
|
requestOptions.body = undefined;
|
|
25
25
|
}
|
|
26
|
+
const url = new URL(config.url);
|
|
27
|
+
if (url.origin !== location.origin) {
|
|
28
|
+
delete requestOptions.credentials;
|
|
29
|
+
}
|
|
26
30
|
try {
|
|
27
31
|
requestOptions.headers['mac_address'] = window.glitter.macAddress;
|
|
28
32
|
requestOptions.headers['language'] = requestOptions.headers['language'] || Language.getLanguage();
|
|
@@ -14,6 +14,10 @@ export class BaseApi {
|
|
|
14
14
|
if (requestOptions.method === 'GET') {
|
|
15
15
|
requestOptions.body = undefined;
|
|
16
16
|
}
|
|
17
|
+
const url=new URL(config.url)
|
|
18
|
+
if(url.origin!==location.origin){
|
|
19
|
+
delete requestOptions.credentials;
|
|
20
|
+
}
|
|
17
21
|
try {
|
|
18
22
|
requestOptions.headers['mac_address'] = (window as any).glitter.macAddress;
|
|
19
23
|
requestOptions.headers['language'] = requestOptions.headers['language'] || Language.getLanguage();
|
|
@@ -957,7 +957,7 @@ ${['選擇初始模板', BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
957
957
|
</div>`;
|
|
958
958
|
},
|
|
959
959
|
divCreate: {
|
|
960
|
-
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px -
|
|
960
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - ${document.body.clientWidth > 1200 ? `165` : `115`}px);overflow-y:auto;`,
|
|
961
961
|
class: ``,
|
|
962
962
|
},
|
|
963
963
|
};
|
|
@@ -998,7 +998,7 @@ ${['選擇初始模板',BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
998
998
|
</div>`;
|
|
999
999
|
},
|
|
1000
1000
|
divCreate: {
|
|
1001
|
-
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px -
|
|
1001
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - ${document.body.clientWidth>1200 ? `165`:`115`}px);overflow-y:auto;`,
|
|
1002
1002
|
class: ``,
|
|
1003
1003
|
},
|
|
1004
1004
|
};
|