tnx-shared 5.3.57 → 5.3.58
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/bundles/tnx-shared.umd.js +16 -40
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/splash-component/splash-component-v1/splash-component-v1.component.d.ts.map +1 -1
- package/components/splash-component/splash-component-v2/splash-component-v2.component.d.ts.map +1 -1
- package/components/splash-component/splash-component-v3/splash-component-v3.component.d.ts.map +1 -1
- package/components/splash-component/splash-component-v4/splash-component-v4.component.d.ts.map +1 -1
- package/esm2015/components/splash-component/splash-component-v1/splash-component-v1.component.js +5 -11
- package/esm2015/components/splash-component/splash-component-v2/splash-component-v2.component.js +5 -11
- package/esm2015/components/splash-component/splash-component-v3/splash-component-v3.component.js +5 -11
- package/esm2015/components/splash-component/splash-component-v4/splash-component-v4.component.js +5 -11
- package/fesm2015/tnx-shared.js +16 -40
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -58069,18 +58069,12 @@
|
|
|
58069
58069
|
SplashComponentV1Component.prototype.switchApp = function (item) {
|
|
58070
58070
|
this.loaded = false;
|
|
58071
58071
|
if (item.target == '_blank') {
|
|
58072
|
-
if (
|
|
58073
|
-
|
|
58074
|
-
}
|
|
58075
|
-
// NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
|
|
58076
|
-
if (item.url == item.defaultRedirect) {
|
|
58077
|
-
item.url = '/' + item.code.toLowerCase();
|
|
58072
|
+
if (item.url.startsWith('http')) {
|
|
58073
|
+
top.location.href = item.url;
|
|
58078
58074
|
}
|
|
58079
|
-
|
|
58080
|
-
|
|
58081
|
-
link = '/' + link;
|
|
58075
|
+
else {
|
|
58076
|
+
top.location.href = item.url + "/" + (item.defaultRedirect || '');
|
|
58082
58077
|
}
|
|
58083
|
-
top.location.href = link;
|
|
58084
58078
|
}
|
|
58085
58079
|
else {
|
|
58086
58080
|
if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
|
|
@@ -58279,18 +58273,12 @@
|
|
|
58279
58273
|
SplashComponentV2Component.prototype.switchApp = function (item) {
|
|
58280
58274
|
this.loaded = false;
|
|
58281
58275
|
if (item.target == '_blank') {
|
|
58282
|
-
if (
|
|
58283
|
-
|
|
58284
|
-
}
|
|
58285
|
-
// NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
|
|
58286
|
-
if (item.url == item.defaultRedirect) {
|
|
58287
|
-
item.url = '/' + item.code.toLowerCase();
|
|
58276
|
+
if (item.url.startsWith('http')) {
|
|
58277
|
+
top.location.href = item.url;
|
|
58288
58278
|
}
|
|
58289
|
-
|
|
58290
|
-
|
|
58291
|
-
link = '/' + link;
|
|
58279
|
+
else {
|
|
58280
|
+
top.location.href = item.url + "/" + (item.defaultRedirect || '');
|
|
58292
58281
|
}
|
|
58293
|
-
top.location.href = link;
|
|
58294
58282
|
}
|
|
58295
58283
|
else {
|
|
58296
58284
|
if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
|
|
@@ -58488,18 +58476,12 @@
|
|
|
58488
58476
|
SplashComponentV3Component.prototype.switchApp = function (item) {
|
|
58489
58477
|
this.loaded = false;
|
|
58490
58478
|
if (item.target == '_blank') {
|
|
58491
|
-
if (
|
|
58492
|
-
|
|
58493
|
-
}
|
|
58494
|
-
// NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
|
|
58495
|
-
if (item.url == item.defaultRedirect) {
|
|
58496
|
-
item.url = '/' + item.code.toLowerCase();
|
|
58479
|
+
if (item.url.startsWith('http')) {
|
|
58480
|
+
top.location.href = item.url;
|
|
58497
58481
|
}
|
|
58498
|
-
|
|
58499
|
-
|
|
58500
|
-
link = '/' + link;
|
|
58482
|
+
else {
|
|
58483
|
+
top.location.href = item.url + "/" + (item.defaultRedirect || '');
|
|
58501
58484
|
}
|
|
58502
|
-
top.location.href = link;
|
|
58503
58485
|
}
|
|
58504
58486
|
else {
|
|
58505
58487
|
if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
|
|
@@ -58697,18 +58679,12 @@
|
|
|
58697
58679
|
SplashComponentV4Component.prototype.switchApp = function (item) {
|
|
58698
58680
|
this.loaded = false;
|
|
58699
58681
|
if (item.target == '_blank') {
|
|
58700
|
-
if (
|
|
58701
|
-
|
|
58702
|
-
}
|
|
58703
|
-
// NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
|
|
58704
|
-
if (item.url == item.defaultRedirect) {
|
|
58705
|
-
item.url = '/' + item.code.toLowerCase();
|
|
58682
|
+
if (item.url.startsWith('http')) {
|
|
58683
|
+
top.location.href = item.url;
|
|
58706
58684
|
}
|
|
58707
|
-
|
|
58708
|
-
|
|
58709
|
-
link = '/' + link;
|
|
58685
|
+
else {
|
|
58686
|
+
top.location.href = item.url + "/" + (item.defaultRedirect || '');
|
|
58710
58687
|
}
|
|
58711
|
-
top.location.href = link;
|
|
58712
58688
|
}
|
|
58713
58689
|
else {
|
|
58714
58690
|
if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
|