yuang-framework-ui-common 1.0.89 → 1.0.90

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.
@@ -10,11 +10,11 @@ import { alertMessageBox } from '../utils/messageBoxUtils';
10
10
 
11
11
  import { application } from '../config/applicationConfig';
12
12
  import { getSsoLoginUrl, clearSsoAccessToken, setSsoAccessToken } from '../utils/ssoUtils';
13
- import { getIsDebug, setIsDebug } from '../utils/htmlUtils';
13
+ import { getIsDebug } from '../utils/htmlUtils';
14
14
 
15
15
  import { clearGateway, initGateway } from '../config/gatewayConfig';
16
16
 
17
- import { getLocalStorageItem, setLocalStorageItem } from '../utils/storageUtils'
17
+ import { getLocalStorageItem } from '../utils/storageUtils'
18
18
  import { removeParameter } from "../utils/urlUtils";
19
19
 
20
20
  const router = useRouter();
@@ -4,6 +4,7 @@ import { rsaEncrypt } from './rsaUtils';
4
4
  import { isFullUrl } from './urlUtils';
5
5
  import { getLocalStorageItem, setLocalStorageItem, removeLocalStorageItem } from './storageUtils';
6
6
  import { application } from '../config/applicationConfig';
7
+ import { getIsDebug } from '../utils/htmlUtils';
7
8
 
8
9
 
9
10
  /**
@@ -24,6 +25,9 @@ const getSsoLoginUrl = (ssoRedirectUrl = '') => {
24
25
  } else {
25
26
  ssoLoginUrl += `?ssoRedirectUrl=${encodeURIComponent(ssoRedirectUrl)}`;
26
27
  }
28
+ if(getIsDebug) {
29
+ console.log('ssoLoginUrl', ssoLoginUrl);
30
+ }
27
31
  return ssoLoginUrl;
28
32
  }
29
33
 
@@ -45,6 +49,9 @@ const getSsoAuthUrl = (ssoRedirectUrl = '') => {
45
49
  } else {
46
50
  ssoAuthUrl += `?ssoRedirectUrl=${encodeURIComponent(ssoRedirectUrl)}`;
47
51
  }
52
+ if(getIsDebug) {
53
+ console.log('ssoAuthUrl', ssoAuthUrl);
54
+ }
48
55
  return ssoAuthUrl;
49
56
  }
50
57
 
@@ -66,6 +73,11 @@ const getSsoLogoutUrl = (ssoRedirectUrl = '') => {
66
73
  } else if (ssoRedirectUrl) {
67
74
  ssoLogoutUrl += `?ssoRedirectUrl=${encodeURIComponent(ssoRedirectUrl)}`;
68
75
  }
76
+ if(getIsDebug) {
77
+ console.log('ssoLogoutUrl', ssoLogoutUrl);
78
+ }
79
+ console.log('ssoLogoutUrl', ssoLogoutUrl);
80
+
69
81
  return ssoLogoutUrl;
70
82
  }
71
83
 
@@ -80,6 +92,9 @@ const getSsoAuthRoutePath = (ssoRedirectRoutePath = '') => {
80
92
  } else {
81
93
  ssoAuthRoutePath += `?ssoRedirectRoutePath=${encodeURIComponent(ssoRedirectRoutePath)}`;
82
94
  }
95
+ if(getIsDebug) {
96
+ console.log('ssoAuthRoutePath', ssoAuthRoutePath);
97
+ }
83
98
  return ssoAuthRoutePath;
84
99
  }
85
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {