ts-glitter 15.9.3 → 15.9.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
|
@@ -79,7 +79,7 @@ export class Entry {
|
|
|
79
79
|
}
|
|
80
80
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
81
81
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
82
|
-
glitter.share.editerVersion = 'V_15.9.
|
|
82
|
+
glitter.share.editerVersion = 'V_15.9.4';
|
|
83
83
|
glitter.share.start = new Date();
|
|
84
84
|
const vm = {
|
|
85
85
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -81,7 +81,7 @@ export class Entry {
|
|
|
81
81
|
|
|
82
82
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
83
83
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
84
|
-
glitter.share.editerVersion = 'V_15.9.
|
|
84
|
+
glitter.share.editerVersion = 'V_15.9.4';
|
|
85
85
|
glitter.share.start = new Date();
|
|
86
86
|
const vm: {
|
|
87
87
|
appConfig: any;
|
|
@@ -388,13 +388,19 @@ export class ProductDetail {
|
|
|
388
388
|
vm.content_manager = dataArray[0].response.value;
|
|
389
389
|
}
|
|
390
390
|
if (dataArray[1].result && dataArray[1].response.data) {
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
try {
|
|
392
|
+
if (Array.isArray(dataArray[1].response.data)) {
|
|
393
|
+
vm.data = dataArray[1].response.data[0];
|
|
394
|
+
glitter.setUrlParameter('page', 'products/' + encodeURIComponent(vm.data.content.seo.domain));
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
vm.data = dataArray[1].response.data;
|
|
398
|
+
glitter.setUrlParameter('page', 'products/' + encodeURIComponent(vm.data.content.seo.domain));
|
|
399
|
+
}
|
|
393
400
|
}
|
|
394
|
-
|
|
395
|
-
vm.data =
|
|
401
|
+
catch (e) {
|
|
402
|
+
vm.data = {};
|
|
396
403
|
}
|
|
397
|
-
glitter.setUrlParameter('page', 'products/' + encodeURIComponent(vm.data.content.seo.domain));
|
|
398
404
|
}
|
|
399
405
|
if (dataArray[2].result && dataArray[2].response.data) {
|
|
400
406
|
vm.wishStatus = dataArray[2].response.data.some((item) => item.id === vm.data.id);
|
|
@@ -441,12 +441,18 @@ export class ProductDetail {
|
|
|
441
441
|
vm.content_manager = dataArray[0].response.value;
|
|
442
442
|
}
|
|
443
443
|
if (dataArray[1].result && dataArray[1].response.data) {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
444
|
+
try {
|
|
445
|
+
if(Array.isArray(dataArray[1].response.data)){
|
|
446
|
+
vm.data = dataArray[1].response.data[0];
|
|
447
|
+
glitter.setUrlParameter('page','products/'+encodeURIComponent(vm.data.content.seo.domain))
|
|
448
|
+
}else{
|
|
449
|
+
vm.data = dataArray[1].response.data;
|
|
450
|
+
glitter.setUrlParameter('page','products/'+encodeURIComponent(vm.data.content.seo.domain))
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
}catch (e) {
|
|
454
|
+
(vm.data as any)={}
|
|
455
|
+
}
|
|
450
456
|
}
|
|
451
457
|
if (dataArray[2].result && dataArray[2].response.data) {
|
|
452
458
|
vm.wishStatus = dataArray[2].response.data.some((item: Product) => item.id === vm.data.id);
|