yuang-framework-ui-common 1.0.45 → 1.0.47

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.
@@ -1,7 +1,7 @@
1
1
  import { http } from '../config/httpConfig';
2
2
  import { getLocalStorageItem, setLocalStorageItem, removeLocalStorageItem } from '../utils/storageUtils';
3
3
 
4
- const getGatewayConfigUrl = '/server/gateway/getGatewayConfig';
4
+ const getGatewayConfigUrl = '/server/gateway-config/getGatewayConfig';
5
5
  const initGatewayConfig = () => {
6
6
  return new Promise<void>(async resolve => {
7
7
  let res = await http.get(getGatewayConfigUrl);
@@ -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/login/index?ssoRedirectRoutePath=${encodeURIComponent(fullPath)}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -8,10 +8,10 @@ const router = createRouter({
8
8
  history: createWebHistory(import.meta.env.BASE_URL),
9
9
  routes: [
10
10
  {
11
- path: '/sso/login/index',
12
- component: () => import('@/views/sso/login/index.vue'),
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
- <!-- <div>登录中...</div>-->
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/login/login-success' as any);
27
+ ssoRedirectRoutePath = (ssoRedirectRoutePath && decodeURIComponent(ssoRedirectRoutePath)) || ('/sso/auth/auth-success' as any);
28
28
  ssoRedirectRoutePath = removeParameter('ssoAuthCode', ssoRedirectRoutePath) || '';
29
29
  router.push(ssoRedirectRoutePath);
30
30
  });