yuang-framework-ui-common 1.0.69 → 1.0.70

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.
@@ -99,7 +99,7 @@ http.interceptors.response.use(async (res: any) => {
99
99
  } else if (res?.data?.statusCode === 500815006) {
100
100
  // 这里存疑: 返回500815004 的时候获取router为null
101
101
  const fullPath = router.currentRoute.value.fullPath;
102
- router.push(`/sso/auth/index?ssoRedirectRoutePath=${encodeURIComponent(fullPath)}`);
102
+ router.push(`/sso/sso-auth/index?ssoRedirectRoutePath=${encodeURIComponent(fullPath)}`);
103
103
  return;
104
104
  } else if (res?.data?.statusCode === 500815003) {
105
105
  showErrorMessage(res?.data?.message || messageMap.requestError);
@@ -45,9 +45,9 @@ const getSsoLogoutUrl = (ssoRedirectUrl = '') => {
45
45
  * @param ssoRedirectRoutePath
46
46
  */
47
47
  const getSsoAuthRoutePath = (ssoRedirectRoutePath = '') => {
48
- let ssoAuthRoutePath = '/sso/auth/index';
48
+ let ssoAuthRoutePath = '/sso/sso-auth/index';
49
49
  if (!ssoRedirectRoutePath) {
50
- ssoAuthRoutePath += `?ssoRedirectRoutePath=${encodeURIComponent('/sso/auth/auth-success')}`;
50
+ ssoAuthRoutePath += `?ssoRedirectRoutePath=${encodeURIComponent('/sso/sso-auth/auth-success')}`;
51
51
  } else {
52
52
  ssoAuthRoutePath += `?ssoRedirectRoutePath=${encodeURIComponent(ssoRedirectRoutePath)}`;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -8,23 +8,23 @@ const router = createRouter({
8
8
  history: createWebHistory(import.meta.env.BASE_URL),
9
9
  routes: [
10
10
  {
11
- path: '/sso/auth/index',
12
- component: () => import('@/views/sso/auth/index.vue'),
11
+ path: '/sso/sso-auth/index',
12
+ component: () => import('@/views/sso/sso-auth/index.vue'),
13
13
  meta: {
14
14
  title: '认证',
15
15
  isSsoExcluded: true
16
16
  }
17
17
  },
18
18
  {
19
- path: '/sso/auth/auth-success',
20
- component: () => import('@/views/sso/auth/auth-success.vue'),
19
+ path: '/sso/sso-auth/auth-success',
20
+ component: () => import('@/views/sso/sso-auth/auth-success.vue'),
21
21
  meta: {
22
22
  title: '认证成功',
23
23
  }
24
24
  },
25
25
  {
26
- path: '/config/gateway-config',
27
- component: () => import('@/views/config/gateway-config.vue')
26
+ path: '/gateway/gateway-config',
27
+ component: () => import('@/views/gateway/gateway-config.vue')
28
28
  },
29
29
  {
30
30
  path: '/utils/aes-utils',
@@ -26,7 +26,7 @@
26
26
  http.get(`${application.gatewayServerBaseUrl}/sso-api/client/sso-auth/getSsoAccessToken`, { params: { ssoAuthCode: ssoAuthCode } }).then((res: any) => {
27
27
  setSsoAccessToken(res.data.data);
28
28
  let ssoRedirectRoutePath = router.currentRoute.value.query.ssoRedirectRoutePath as string;
29
- ssoRedirectRoutePath = (ssoRedirectRoutePath && decodeURIComponent(ssoRedirectRoutePath)) || ('/sso/auth/auth-success' as any);
29
+ ssoRedirectRoutePath = (ssoRedirectRoutePath && decodeURIComponent(ssoRedirectRoutePath)) || ('/sso/sso-auth/auth-success' as any);
30
30
  ssoRedirectRoutePath = removeParameter('ssoAuthCode', ssoRedirectRoutePath) || '';
31
31
  router.push(ssoRedirectRoutePath);
32
32
  });