ecinc-cloud-mappaio 9.7.55 → 9.7.56

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.
@@ -1296,16 +1296,22 @@ var actions = {
1296
1296
  resetToken: function resetToken(_ref16) {
1297
1297
  var commit = _ref16.commit;
1298
1298
  return new Promise(function (resolve) {
1299
- commit('SET_TOKEN', '');
1300
- commit('SET_LOGIN_USER', null);
1301
- commit('SET_ROLES', []);
1302
- commit('SET_PERMISSIONS', []);
1303
- commit('SET_AVATAR', '');
1304
- window.$auth.removeTicket();
1305
- window.$auth.removeToken();
1306
- window.$auth.removeRoles();
1307
- window.$auth.removePermissions();
1308
- resolve();
1299
+ _store__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.dispatch('route/updateRoutes', []).then(function () {
1300
+ commit('SET_TOKEN', '');
1301
+ commit('SET_LOGIN_USER', null);
1302
+ commit('SET_ROLES', []);
1303
+ commit('SET_PERMISSIONS', []);
1304
+ commit('SET_PERSON_ORGAN_LIST', []);
1305
+ commit('SET_AVATAR', '');
1306
+ commit('SET_PRODUCT_CODE_LIST', []);
1307
+ commit('SET_PRODUCT_CODE_ALL', []);
1308
+ window.$auth.removeProductCode();
1309
+ window.$auth.removeToken();
1310
+ window.$auth.removeTicket();
1311
+ window.$auth.removeRoles();
1312
+ window.$auth.removePermissions();
1313
+ resolve();
1314
+ });
1309
1315
  });
1310
1316
  }
1311
1317
  };
@@ -57840,7 +57846,9 @@ service.interceptors.response.use(function (response) {
57840
57846
  }, function (error) {
57841
57847
  var $scope = window.$wapp || window.$mapp;
57842
57848
  if ($scope && $scope.customErrorHander) {
57843
- $scope.customErrorHander(error);
57849
+ store/* default */.A.dispatch('user/resetToken').then(function () {
57850
+ $scope.customErrorHander(error);
57851
+ });
57844
57852
  } else if ((error.status === 401 || error.response && (error.response.status === 401 || error.response.data && error.response.data.status === 401)) && error.config.url.indexOf('http:') === -1 && error.config.url.indexOf('https:') === -1) {
57845
57853
  store/* default */.A.dispatch('user/resetToken').then(function () {
57846
57854
  var errmsg = window.$tx('request.status401');
@@ -1306,16 +1306,22 @@ var actions = {
1306
1306
  resetToken: function resetToken(_ref16) {
1307
1307
  var commit = _ref16.commit;
1308
1308
  return new Promise(function (resolve) {
1309
- commit('SET_TOKEN', '');
1310
- commit('SET_LOGIN_USER', null);
1311
- commit('SET_ROLES', []);
1312
- commit('SET_PERMISSIONS', []);
1313
- commit('SET_AVATAR', '');
1314
- window.$auth.removeTicket();
1315
- window.$auth.removeToken();
1316
- window.$auth.removeRoles();
1317
- window.$auth.removePermissions();
1318
- resolve();
1309
+ _store__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.dispatch('route/updateRoutes', []).then(function () {
1310
+ commit('SET_TOKEN', '');
1311
+ commit('SET_LOGIN_USER', null);
1312
+ commit('SET_ROLES', []);
1313
+ commit('SET_PERMISSIONS', []);
1314
+ commit('SET_PERSON_ORGAN_LIST', []);
1315
+ commit('SET_AVATAR', '');
1316
+ commit('SET_PRODUCT_CODE_LIST', []);
1317
+ commit('SET_PRODUCT_CODE_ALL', []);
1318
+ window.$auth.removeProductCode();
1319
+ window.$auth.removeToken();
1320
+ window.$auth.removeTicket();
1321
+ window.$auth.removeRoles();
1322
+ window.$auth.removePermissions();
1323
+ resolve();
1324
+ });
1319
1325
  });
1320
1326
  }
1321
1327
  };
@@ -57858,7 +57864,9 @@ service.interceptors.response.use(function (response) {
57858
57864
  }, function (error) {
57859
57865
  var $scope = window.$wapp || window.$mapp;
57860
57866
  if ($scope && $scope.customErrorHander) {
57861
- $scope.customErrorHander(error);
57867
+ store/* default */.A.dispatch('user/resetToken').then(function () {
57868
+ $scope.customErrorHander(error);
57869
+ });
57862
57870
  } else if ((error.status === 401 || error.response && (error.response.status === 401 || error.response.data && error.response.data.status === 401)) && error.config.url.indexOf('http:') === -1 && error.config.url.indexOf('https:') === -1) {
57863
57871
  store/* default */.A.dispatch('user/resetToken').then(function () {
57864
57872
  var errmsg = window.$tx('request.status401');