xydata-tools 1.1.7 → 1.1.8
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.
|
@@ -437,7 +437,8 @@ export var logout = /*#__PURE__*/function () {
|
|
|
437
437
|
* }
|
|
438
438
|
*/
|
|
439
439
|
export var handleUnauthorized = function handleUnauthorized(envData) {
|
|
440
|
-
|
|
440
|
+
// 这里兼容以前的aaaLogin属性
|
|
441
|
+
var actualLoginType = envData.login_type || (envData.aaaLogin !== undefined ? envData.aaaLogin ? 'AAA' : 'SSO' : 'BOTH');
|
|
441
442
|
if (actualLoginType === 'BOTH') {
|
|
442
443
|
var redirectUrl = getSessionStorage('sso_redirect_url');
|
|
443
444
|
actualLoginType = redirectUrl ? 'SSO' : 'AAA';
|