yuang-framework-ui-common 1.0.45 → 1.0.46
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.
package/lib/config/httpConfig.ts
CHANGED
@@ -78,7 +78,7 @@ http.interceptors.response.use(async (res: any) => {
|
|
78
78
|
return axios.request(res.config);
|
79
79
|
} else if (res?.data?.statusCode === 500815006) {
|
80
80
|
const fullPath = router.currentRoute.value.fullPath;
|
81
|
-
router.push(`/sso/
|
81
|
+
router.push(`/sso/auth/index?ssoRedirectRoutePath=${encodeURIComponent(fullPath)}`);
|
82
82
|
return;
|
83
83
|
} else if (res?.data?.statusCode === 500815003) {
|
84
84
|
showErrorMessage(res?.data?.message || messageMap.requestError);
|
package/package.json
CHANGED
package/src/router/index.ts
CHANGED
@@ -8,10 +8,10 @@ const router = createRouter({
|
|
8
8
|
history: createWebHistory(import.meta.env.BASE_URL),
|
9
9
|
routes: [
|
10
10
|
{
|
11
|
-
path: '/sso/
|
12
|
-
component: () => import('@/views/sso/
|
11
|
+
path: '/sso/auth/index',
|
12
|
+
component: () => import('@/views/sso/auth/index.vue'),
|
13
13
|
meta: {
|
14
|
-
title: '
|
14
|
+
title: '认证',
|
15
15
|
isAnonymous: true
|
16
16
|
}
|
17
17
|
},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
|
2
|
+
<div>认证中...</div>
|
3
3
|
</template>
|
4
4
|
|
5
5
|
<script setup lang="ts">
|
@@ -24,7 +24,7 @@
|
|
24
24
|
proxy.$http.get('/sso-api/client/sso-auth/getSsoAccessToken', { params: { ssoAuthCode: ssoAuthCode } }).then((res: any) => {
|
25
25
|
setSsoAccessToken(res.data.data);
|
26
26
|
let ssoRedirectRoutePath = router.currentRoute.value.query.ssoRedirectRoutePath as string;
|
27
|
-
ssoRedirectRoutePath = (ssoRedirectRoutePath && decodeURIComponent(ssoRedirectRoutePath)) || ('/sso/
|
27
|
+
ssoRedirectRoutePath = (ssoRedirectRoutePath && decodeURIComponent(ssoRedirectRoutePath)) || ('/sso/auth/auth-success' as any);
|
28
28
|
ssoRedirectRoutePath = removeParameter('ssoAuthCode', ssoRedirectRoutePath) || '';
|
29
29
|
router.push(ssoRedirectRoutePath);
|
30
30
|
});
|