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.
@@ -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
- if (window.vType === 'wapp') {
57850
- var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount'];
57851
- if (!ignoreUrls.some(function (u) {
57852
- return error.config.url.toLowerCase().indexOf(u.toLocaleLowerCase()) !== -1;
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
- location.reload();
57870
- }
57871
- } else {
57872
- window.$alert({
57873
- message: errmsg,
57874
- //'认证会话已过期。'
57875
- type: 'error',
57876
- callback: function callback() {
57877
- if (window.mappType === 'ecinc') {
57878
- // app客户端
57879
- window.$wv.closeWindow();
57880
- } else if (window.mappType === 'wx' || window.wx) {
57881
- // 微信
57882
- window.wx.closeWindow();
57883
- } else if (window.mappType === 'dd' || window.dd) {
57884
- // 钉钉
57885
- window.dd.biz.navigation.close();
57886
- } else if (window.mappType === 'web') {
57887
- // 浏览器模拟器
57888
- var redirect = '';
57889
- if (location.href.indexOf('#') !== -1 && location.href.indexOf('login') === -1) {
57890
- redirect += '?redirect=' + location.href.split('#')[1];
57891
- }
57892
- if (window.flutter_inappwebview) {
57893
- window.location = '#/loginFail';
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.location = '#/login' + redirect;
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
  });
@@ -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
- if (window.vType === 'wapp') {
57868
- var ignoreUrls = ['login', 'getUserRolePermissions', 'getUiStyleConfig', 'queryUiFontSize', 'homepage/allm', 'getLastMsgCount'];
57869
- if (!ignoreUrls.some(function (u) {
57870
- return error.config.url.toLowerCase().indexOf(u.toLocaleLowerCase()) !== -1;
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
- location.reload();
57888
- }
57889
- } else {
57890
- window.$alert({
57891
- message: errmsg,
57892
- //'认证会话已过期。'
57893
- type: 'error',
57894
- callback: function callback() {
57895
- if (window.mappType === 'ecinc') {
57896
- // app客户端
57897
- window.$wv.closeWindow();
57898
- } else if (window.mappType === 'wx' || window.wx) {
57899
- // 微信
57900
- window.wx.closeWindow();
57901
- } else if (window.mappType === 'dd' || window.dd) {
57902
- // 钉钉
57903
- window.dd.biz.navigation.close();
57904
- } else if (window.mappType === 'web') {
57905
- // 浏览器模拟器
57906
- var redirect = '';
57907
- if (location.href.indexOf('#') !== -1 && location.href.indexOf('login') === -1) {
57908
- redirect += '?redirect=' + location.href.split('#')[1];
57909
- }
57910
- if (window.flutter_inappwebview) {
57911
- window.location = '#/loginFail';
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.location = '#/login' + redirect;
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
  });