ecinc-cloud-mappaio 9.6.151 → 9.6.152
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/lib/ecmappaio.common.js
CHANGED
|
@@ -41517,13 +41517,14 @@ var auth_install = function install(Vue) {
|
|
|
41517
41517
|
token = js_cookie_default().get(TokenKey);
|
|
41518
41518
|
var pcode = sessionStorage.getItem('productCode');
|
|
41519
41519
|
pcode = pcode === 'undefined' ? null : pcode;
|
|
41520
|
-
if (!token &&
|
|
41521
|
-
|
|
41520
|
+
if (!token && !pcode) {
|
|
41521
|
+
if (port === '-') {
|
|
41522
|
+
token = js_cookie_default().get(window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN');
|
|
41523
|
+
} else {
|
|
41524
|
+
token = js_cookie_default().get((window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN') + port);
|
|
41525
|
+
}
|
|
41522
41526
|
}
|
|
41523
41527
|
}
|
|
41524
|
-
if ((!token || token === 'undefined') && location.href.indexOf('weixin.ecinc.com.cn') != -1) {
|
|
41525
|
-
alert(document.cookie);
|
|
41526
|
-
}
|
|
41527
41528
|
return token === 'undefined' ? null : token;
|
|
41528
41529
|
},
|
|
41529
41530
|
setToken: function setToken(token) {
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -41527,13 +41527,14 @@ var auth_install = function install(Vue) {
|
|
|
41527
41527
|
token = js_cookie_default().get(TokenKey);
|
|
41528
41528
|
var pcode = sessionStorage.getItem('productCode');
|
|
41529
41529
|
pcode = pcode === 'undefined' ? null : pcode;
|
|
41530
|
-
if (!token &&
|
|
41531
|
-
|
|
41530
|
+
if (!token && !pcode) {
|
|
41531
|
+
if (port === '-') {
|
|
41532
|
+
token = js_cookie_default().get(window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN');
|
|
41533
|
+
} else {
|
|
41534
|
+
token = js_cookie_default().get((window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN') + port);
|
|
41535
|
+
}
|
|
41532
41536
|
}
|
|
41533
41537
|
}
|
|
41534
|
-
if ((!token || token === 'undefined') && location.href.indexOf('weixin.ecinc.com.cn') != -1) {
|
|
41535
|
-
alert(document.cookie);
|
|
41536
|
-
}
|
|
41537
41538
|
return token === 'undefined' ? null : token;
|
|
41538
41539
|
},
|
|
41539
41540
|
setToken: function setToken(token) {
|