xydata-tools 1.0.37 → 1.0.39

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.
@@ -22,10 +22,10 @@ var BothSecurityLayout = function BothSecurityLayout(props) {
22
22
  var pathName = window.location.pathname;
23
23
  useEffect(function () {
24
24
  console.error("构建参数,开发完成,记得删除!");
25
- console.log("ENV_DATA:", envData);
25
+ console.log("ENV_DATA:", JSON.stringify(envData));
26
26
  console.log("service:", service);
27
27
  if (!token) {
28
- if (!AAALOGIN) {
28
+ if (pathName.indexOf("/sso") >= 0 || !AAALOGIN) {
29
29
  envData.sso_type === "new" ? ssoTypeByNew() : ssoTypeByOld();
30
30
  } else {
31
31
  window.location.href = LOGIN_URI;
@@ -111,6 +111,7 @@ var BothSecurityLayout = function BothSecurityLayout(props) {
111
111
  });
112
112
  };
113
113
  var fetchSSO = function fetchSSO() {
114
+ setSessionStorage("r", window.location.href);
114
115
  fetch("/auth/sso", {
115
116
  headers: {
116
117
  SID: SID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xydata-tools",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "xydata tools",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",