yuang-framework-ui-common 1.0.91 → 1.0.92

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.
@@ -187,8 +187,13 @@ const refreshSsoAccessToken = (res: any) => {
187
187
  config.params = {
188
188
  ssoRefreshToken: ssoRefreshToken,
189
189
  }
190
- axios.get(`${application.gatewayServerBaseUrl}/sso-api/client/sso-auth/getSsoRefreshToken`, config).then(res => {
190
+ http.get(`${application.gatewayServerBaseUrl}/sso-api/client/sso-auth/getSsoRefreshToken`, config).then(res => {
191
191
  if (res?.data?.statusCode !== 200) {
192
+ if (res?.data?.statusCode === 500815001) {
193
+ clearSsoAccessToken();
194
+ window.location.href = getSsoLoginUrl() || '';
195
+ return;
196
+ }
192
197
  return reject();
193
198
  }
194
199
  setSsoAccessToken(res.data.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {