ecinc-cloud-mappaio 9.7.49 → 9.7.50
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
|
@@ -57847,12 +57847,12 @@ service.interceptors.response.use(function (response) {
|
|
|
57847
57847
|
errmsg = error.response.data.message;
|
|
57848
57848
|
}
|
|
57849
57849
|
var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount', 'mpp/h5app/querydata'];
|
|
57850
|
-
if (
|
|
57850
|
+
if (window.sessionTimeoutHandler) {
|
|
57851
|
+
window.sessionTimeoutHandler(error);
|
|
57852
|
+
} else if (!ignoreUrls.some(function (u) {
|
|
57851
57853
|
return error.config.url.toLowerCase().indexOf(u.toLowerCase()) !== -1;
|
|
57852
57854
|
})) {
|
|
57853
|
-
if (window.
|
|
57854
|
-
window.sessionTimeoutHandler(error);
|
|
57855
|
-
} else if (window.vType === 'wapp') {
|
|
57855
|
+
if (window.vType === 'wapp') {
|
|
57856
57856
|
//认证会话已过期,请重新登录。
|
|
57857
57857
|
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
57858
57858
|
type: 'error',
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -57865,12 +57865,12 @@ service.interceptors.response.use(function (response) {
|
|
|
57865
57865
|
errmsg = error.response.data.message;
|
|
57866
57866
|
}
|
|
57867
57867
|
var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount', 'mpp/h5app/querydata'];
|
|
57868
|
-
if (
|
|
57868
|
+
if (window.sessionTimeoutHandler) {
|
|
57869
|
+
window.sessionTimeoutHandler(error);
|
|
57870
|
+
} else if (!ignoreUrls.some(function (u) {
|
|
57869
57871
|
return error.config.url.toLowerCase().indexOf(u.toLowerCase()) !== -1;
|
|
57870
57872
|
})) {
|
|
57871
|
-
if (window.
|
|
57872
|
-
window.sessionTimeoutHandler(error);
|
|
57873
|
-
} else if (window.vType === 'wapp') {
|
|
57873
|
+
if (window.vType === 'wapp') {
|
|
57874
57874
|
//认证会话已过期,请重新登录。
|
|
57875
57875
|
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
57876
57876
|
type: 'error',
|