@zgfe/business-lib 1.1.34-alpha.21 → 1.1.34-alpha.22

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.
Files changed (2) hide show
  1. package/es/utils/ajax.js +1 -0
  2. package/package.json +1 -1
package/es/utils/ajax.js CHANGED
@@ -63,6 +63,7 @@ function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
63
63
  flag = true;
64
64
  } else if (new RegExp("".concat(ResponseStatus.notLogin)).test(apiResult.code)) {
65
65
  message = '账户未登录或登录已失效';
66
+ window.location.href = '/webapp/app/login?destination=' + window.location.href;
66
67
  } else if (new RegExp("".concat(ResponseStatus.noPermission)).test(apiResult.code)) {
67
68
  window.location.href = '/webapp/app/noPermission';
68
69
  throw new Error(apiResult.msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.34-alpha.21",
3
+ "version": "1.1.34-alpha.22",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",