ecinc-cloud-mappaio 9.7.47 → 9.7.48
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 +37 -36
- package/lib/ecmappaio.umd.js +37 -36
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -57846,11 +57846,13 @@ service.interceptors.response.use(function (response) {
|
|
|
57846
57846
|
if (error.response.data && error.response.data.message) {
|
|
57847
57847
|
errmsg = error.response.data.message;
|
|
57848
57848
|
}
|
|
57849
|
-
|
|
57850
|
-
|
|
57851
|
-
|
|
57852
|
-
|
|
57853
|
-
|
|
57849
|
+
var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount', 'mpp/h5app/querydata'];
|
|
57850
|
+
if (!ignoreUrls.some(function (u) {
|
|
57851
|
+
return error.config.url.toLowerCase().indexOf(u.toLowerCase()) !== -1;
|
|
57852
|
+
})) {
|
|
57853
|
+
if (window.sessionTimeoutHandler) {
|
|
57854
|
+
window.sessionTimeoutHandler(error);
|
|
57855
|
+
} else if (window.vType === 'wapp') {
|
|
57854
57856
|
//认证会话已过期,请重新登录。
|
|
57855
57857
|
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
57856
57858
|
type: 'error',
|
|
@@ -57866,40 +57868,39 @@ service.interceptors.response.use(function (response) {
|
|
|
57866
57868
|
}
|
|
57867
57869
|
});
|
|
57868
57870
|
} else {
|
|
57869
|
-
|
|
57870
|
-
|
|
57871
|
-
|
|
57872
|
-
|
|
57873
|
-
|
|
57874
|
-
|
|
57875
|
-
|
|
57876
|
-
|
|
57877
|
-
|
|
57878
|
-
|
|
57879
|
-
|
|
57880
|
-
|
|
57881
|
-
|
|
57882
|
-
|
|
57883
|
-
|
|
57884
|
-
|
|
57885
|
-
|
|
57886
|
-
|
|
57887
|
-
|
|
57888
|
-
|
|
57889
|
-
|
|
57890
|
-
|
|
57891
|
-
|
|
57892
|
-
|
|
57893
|
-
|
|
57871
|
+
window.$alert({
|
|
57872
|
+
message: errmsg,
|
|
57873
|
+
//'认证会话已过期。'
|
|
57874
|
+
type: 'error',
|
|
57875
|
+
callback: function callback() {
|
|
57876
|
+
if (window.mappType === 'ecinc') {
|
|
57877
|
+
// app客户端
|
|
57878
|
+
window.$wv.closeWindow();
|
|
57879
|
+
} else if (window.mappType === 'wx' && window.wx) {
|
|
57880
|
+
// 微信
|
|
57881
|
+
window.wx.closeWindow();
|
|
57882
|
+
} else if (window.mappType === 'dd' && window.dd) {
|
|
57883
|
+
// 钉钉
|
|
57884
|
+
window.dd.biz.navigation.close();
|
|
57885
|
+
} else if (window.mappType === 'web') {
|
|
57886
|
+
// 浏览器模拟器
|
|
57887
|
+
var redirect = '';
|
|
57888
|
+
if (location.href.indexOf('#') !== -1 && location.href.indexOf('login') === -1) {
|
|
57889
|
+
redirect += '?redirect=' + encodeURIComponent(location.href.split('#')[1]);
|
|
57890
|
+
}
|
|
57891
|
+
if (window.flutter_inappwebview) {
|
|
57892
|
+
window.location = '#/loginFail';
|
|
57893
|
+
} else {
|
|
57894
|
+
window.location = '#/login' + redirect;
|
|
57895
|
+
}
|
|
57894
57896
|
} else {
|
|
57895
|
-
window.
|
|
57897
|
+
window.close();
|
|
57896
57898
|
}
|
|
57897
|
-
window.location.reload();
|
|
57898
|
-
} else {
|
|
57899
|
-
window.close();
|
|
57900
57899
|
}
|
|
57901
|
-
}
|
|
57902
|
-
}
|
|
57900
|
+
});
|
|
57901
|
+
}
|
|
57902
|
+
} else {
|
|
57903
|
+
location.reload();
|
|
57903
57904
|
}
|
|
57904
57905
|
return Promise.reject(error);
|
|
57905
57906
|
});
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -57864,11 +57864,13 @@ service.interceptors.response.use(function (response) {
|
|
|
57864
57864
|
if (error.response.data && error.response.data.message) {
|
|
57865
57865
|
errmsg = error.response.data.message;
|
|
57866
57866
|
}
|
|
57867
|
-
|
|
57868
|
-
|
|
57869
|
-
|
|
57870
|
-
|
|
57871
|
-
|
|
57867
|
+
var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount', 'mpp/h5app/querydata'];
|
|
57868
|
+
if (!ignoreUrls.some(function (u) {
|
|
57869
|
+
return error.config.url.toLowerCase().indexOf(u.toLowerCase()) !== -1;
|
|
57870
|
+
})) {
|
|
57871
|
+
if (window.sessionTimeoutHandler) {
|
|
57872
|
+
window.sessionTimeoutHandler(error);
|
|
57873
|
+
} else if (window.vType === 'wapp') {
|
|
57872
57874
|
//认证会话已过期,请重新登录。
|
|
57873
57875
|
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
57874
57876
|
type: 'error',
|
|
@@ -57884,40 +57886,39 @@ service.interceptors.response.use(function (response) {
|
|
|
57884
57886
|
}
|
|
57885
57887
|
});
|
|
57886
57888
|
} else {
|
|
57887
|
-
|
|
57888
|
-
|
|
57889
|
-
|
|
57890
|
-
|
|
57891
|
-
|
|
57892
|
-
|
|
57893
|
-
|
|
57894
|
-
|
|
57895
|
-
|
|
57896
|
-
|
|
57897
|
-
|
|
57898
|
-
|
|
57899
|
-
|
|
57900
|
-
|
|
57901
|
-
|
|
57902
|
-
|
|
57903
|
-
|
|
57904
|
-
|
|
57905
|
-
|
|
57906
|
-
|
|
57907
|
-
|
|
57908
|
-
|
|
57909
|
-
|
|
57910
|
-
|
|
57911
|
-
|
|
57889
|
+
window.$alert({
|
|
57890
|
+
message: errmsg,
|
|
57891
|
+
//'认证会话已过期。'
|
|
57892
|
+
type: 'error',
|
|
57893
|
+
callback: function callback() {
|
|
57894
|
+
if (window.mappType === 'ecinc') {
|
|
57895
|
+
// app客户端
|
|
57896
|
+
window.$wv.closeWindow();
|
|
57897
|
+
} else if (window.mappType === 'wx' && window.wx) {
|
|
57898
|
+
// 微信
|
|
57899
|
+
window.wx.closeWindow();
|
|
57900
|
+
} else if (window.mappType === 'dd' && window.dd) {
|
|
57901
|
+
// 钉钉
|
|
57902
|
+
window.dd.biz.navigation.close();
|
|
57903
|
+
} else if (window.mappType === 'web') {
|
|
57904
|
+
// 浏览器模拟器
|
|
57905
|
+
var redirect = '';
|
|
57906
|
+
if (location.href.indexOf('#') !== -1 && location.href.indexOf('login') === -1) {
|
|
57907
|
+
redirect += '?redirect=' + encodeURIComponent(location.href.split('#')[1]);
|
|
57908
|
+
}
|
|
57909
|
+
if (window.flutter_inappwebview) {
|
|
57910
|
+
window.location = '#/loginFail';
|
|
57911
|
+
} else {
|
|
57912
|
+
window.location = '#/login' + redirect;
|
|
57913
|
+
}
|
|
57912
57914
|
} else {
|
|
57913
|
-
window.
|
|
57915
|
+
window.close();
|
|
57914
57916
|
}
|
|
57915
|
-
window.location.reload();
|
|
57916
|
-
} else {
|
|
57917
|
-
window.close();
|
|
57918
57917
|
}
|
|
57919
|
-
}
|
|
57920
|
-
}
|
|
57918
|
+
});
|
|
57919
|
+
}
|
|
57920
|
+
} else {
|
|
57921
|
+
location.reload();
|
|
57921
57922
|
}
|
|
57922
57923
|
return Promise.reject(error);
|
|
57923
57924
|
});
|