yuang-framework-ui-common 1.0.36 → 1.0.37

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.
@@ -141,7 +141,7 @@ const refreshSsoAccessToken = (res: any) => {
141
141
  config.params = {
142
142
  ssoRefreshToken: encodeURIComponent(getLocalStorageItem("ssoRefreshToken") ?? ''),
143
143
  }
144
- axios.get(`/sso-api/client/auth/getSsoRefreshToken`, config).then(res => {
144
+ axios.get(`/sso-api/client/sso-auth/getSsoRefreshToken`, config).then(res => {
145
145
  if (res?.data?.statusCode !== 200) {
146
146
  return reject();
147
147
  }
@@ -92,10 +92,9 @@ const getSsoAccessToken = () => {
92
92
 
93
93
  if (!ssoAccessToken) {
94
94
  ssoAccessToken = getLocalStorageItem(ssoAccessTokenLocalKey) as string;
95
- return ssoAccessToken
95
+ return ssoAccessToken;
96
96
  }
97
-
98
- return ssoAccessToken
97
+ return ssoAccessToken;
99
98
  }
100
99
 
101
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  return;
21
21
  }
22
22
 
23
- proxy.$http.get('/sso-api/client/auth/getSsoAccessToken', { params: { code: code } }).then((res: any) => {
23
+ proxy.$http.get('/sso-api/client/sso-auth/getSsoAccessToken', { params: { code: code } }).then((res: any) => {
24
24
  setSsoAccessToken(res.data.data);
25
25
  let redirectRoutePath = router.currentRoute.value.query.redirectRoutePath as string;
26
26
  redirectRoutePath = (redirectRoutePath && decodeURIComponent(redirectRoutePath)) || ('/sso/login/login-success' as any);